84% wp-reset-filters

Code Review | WP Reset Filters

WordPress plugin WP Reset Filters scored84%from 54 tests.

About plugin

  • Plugin page: wp-reset-filters
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.4
  • WordPress version: 6.3.1
  • First release: Nov 17, 2015
  • Latest release: Nov 17, 2015
  • Number of updates: 4
  • Update frequency: every 9.3 days
  • Top authors: johnjamesjacoby (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,099 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.65ms] Passed 4 tests

An overview of server-side resources used by WP Reset Filters
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.37 ▼2.47
Dashboard /wp-admin3.31 ▲0.0048.03 ▼4.78
Posts /wp-admin/edit.php3.36 ▲0.0052.77 ▼2.26
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.32 ▼9.10
Media Library /wp-admin/upload.php3.23 ▲0.0036.68 ▲0.62

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP Reset Filters: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.32 ▼0.021.56 ▼0.3939.14 ▼6.25
Dashboard /wp-admin2,199 ▲255.51 ▼0.0387.66 ▼8.1341.18 ▼0.86
Posts /wp-admin/edit.php2,118 ▲182.04 ▲0.0937.68 ▼2.6036.39 ▼5.78
Add New Post /wp-admin/post-new.php1,542 ▲618.37 ▲0.13619.36 ▼23.8165.50 ▼5.60
Media Library /wp-admin/upload.php1,410 ▲134.24 ▲0.0298.14 ▼7.5744.24 ▼1.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-reset-filters/wp-reset-filters.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Vanilla), #2 (Pretty Filters)
You can take inspiration from this readme.txt

wp-reset-filters/wp-reset-filters.php Passed 13 tests

The principal PHP file in "WP Reset Filters" v. 0.1.0 is loaded by WordPress automatically on each request
32 characters long description:
Adds a "Reset" button to filters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin44 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP183218
JavaScript14412
Markdown18011
CSS1003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin