90% wp-plugin-filter

Code Review | WP Plugin Filter

WordPress plugin WP Plugin Filter scored90%from 54 tests.

About plugin

  • Plugin page: wp-plugin-filter
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.3-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 17, 2023
  • Latest release: Nov 18, 2023
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: mikekipruto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /22 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.26ms] Passed 4 tests

This is a short check of server-side resources used by WP Plugin Filter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.99 ▼8.03
Dashboard /wp-admin3.34 ▲0.0351.53 ▲2.97
Posts /wp-admin/edit.php3.39 ▲0.0349.93 ▲6.67
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.44 ▲1.73
Media Library /wp-admin/upload.php3.26 ▲0.0336.79 ▲2.31
WP Plugin Filter /wp-admin/options-general.php?page=wp-plugin-filter3.2329.01

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Plugin Filter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.25 ▼0.001.93 ▲0.1738.91 ▼4.45
Dashboard /wp-admin2,199 ▲225.58 ▼0.0790.76 ▼10.5240.47 ▼5.41
Posts /wp-admin/edit.php2,107 ▲42.03 ▲0.0139.62 ▲5.5534.27 ▲3.12
Add New Post /wp-admin/post-new.php1,529 ▲323.11 ▼0.07655.32 ▲17.7154.79 ▲4.16
Media Library /wp-admin/upload.php1,407 ▲74.27 ▲0.0698.34 ▼4.9942.38 ▼1.77
WP Plugin Filter /wp-admin/options-general.php?page=wp-plugin-filter8252.0027.9328.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: hide, admin, plugin, filter, management

wp-plugin-filter/wp-plugin-filter.php 92% from 13 tests

This is the main PHP file of "WP Plugin Filter" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin136 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12147136

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin