84% filter-plugins

Code Review | Filter Plugins

WordPress plugin Filter Plugins scored 84% from 54 tests.

About plugin

  • Plugin page: filter-plugins
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.2
  • WordPress version: 6.3.1
  • First release: Aug 19, 2011
  • Latest release: Sep 13, 2012
  • Number of updates: 6
  • Update frequency: every 65.0 days
  • Top authors: scribu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,224 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.12MB] [CPU: ▼8.63ms] Passed 4 tests

Server-side resources used by Filter Plugins
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.77 ▼4.34
Dashboard /wp-admin3.29 ▼0.0142.18 ▼5.40
Posts /wp-admin/edit.php3.36 ▲0.0043.44 ▼0.52
Add New Post /wp-admin/post-new.php5.44 ▼0.4577.32 ▼19.64
Media Library /wp-admin/upload.php3.20 ▼0.0330.52 ▼5.13

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Filter Plugins: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.31 ▼1.312.00 ▲0.1042.45 ▲1.84
Dashboard /wp-admin2,209 ▲175.91 ▲0.9692.15 ▼17.7438.20 ▼7.33
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0337.28 ▲4.2630.73 ▼3.36
Add New Post /wp-admin/post-new.php1,533 ▼323.16 ▼0.10589.04 ▼39.9143.66 ▼8.58
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0296.07 ▲2.0642.98 ▼0.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/filter-plugins/filter-plugins.php:67

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: admin, filter, plugins

filter-plugins/filter-plugins.php Passed 13 tests

The primary PHP file in "Filter Plugins" version 1.0.1 is used by WordPress to initiate all plugin functionality
31 characters long description:
Filter plugins by their author.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin47 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP114847

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity2.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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
PNG images were not found in this plugin