Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.21MB] [CPU: ▲9.72ms] Passed 4 tests
Server-side resources used by 404 Solution
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.25 ▼9.23 |
Dashboard /wp-admin | 4.92 ▲1.61 | 64.51 ▲13.53 |
Posts /wp-admin/edit.php | 5.01 ▲1.66 | 67.24 ▲23.40 |
Add New Post /wp-admin/post-new.php | 7.50 ▲1.61 | 102.29 ▲11.19 |
Media Library /wp-admin/upload.php | 4.82 ▲1.59 | 61.35 ▲25.53 |
404 Solution /wp-admin/options-general.php?page=abj404_solution | 4.85 | 56.97 |
Server storage [IO: ▲1.06MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 105 new files
Database: 5 new tables, 6 new options
New tables |
---|
wp_abj404_spelling_cache |
wp_abj404_permalink_cache |
wp_abj404_logsv2 |
wp_abj404_lookup |
wp_abj404_redirects |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for 404 Solution
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲57 | 14.21 ▼0.55 | 1.88 ▲0.11 | 38.93 ▼5.61 |
Dashboard /wp-admin | 2,196 ▲22 | 5.57 ▲0.03 | 96.21 ▼9.95 | 41.88 ▼0.47 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.14 | 39.51 ▲0.81 | 35.35 ▲1.28 |
Add New Post /wp-admin/post-new.php | 1,529 ▲2 | 23.10 ▼0.02 | 606.89 ▼46.00 | 46.75 ▼7.18 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.21 ▲0.04 | 100.09 ▼6.20 | 45.42 ▲2.16 |
404 Solution /wp-admin/options-general.php?page=abj404_solution | 1,445 | 2.21 | 50.20 | 47.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables detected upon uninstall: 5 tables
- wp_abj404_logsv2
- wp_abj404_redirects
- wp_abj404_lookup
- wp_abj404_permalink_cache
- wp_abj404_spelling_cache
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
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 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
Please take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/404-solution/404-solution.php:34
- > PHP Fatal error
Uncaught Error: Class 'ABJ_404_Solution_Functions' not found in wp-content/plugins/404-solution/includes/php/FunctionsPreg.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/404-solution/includes/ShortCode.php:231
- > PHP Fatal error
Uncaught Error: Class 'ABJ_404_Solution_Functions' not found in wp-content/plugins/404-solution/includes/php/FunctionsMBString.php:4
- > PHP Fatal error
Uncaught Error: Class 'wpdb' not found in wp-content/plugins/404-solution/includes/php/wordpress/WPDBExtension.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/404-solution/includes/Loader.php:6
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: temporary redirect, page not found, 301, permalink, error...
404-solution/404-solution.php Passed 13 tests
The main PHP script in "404 Solution" version 2.35.6 is automatically included on every request by WordPress
137 characters long description:
Creates automatic redirects for 404 traffic and page suggestions when matches are not found providing better service to your web visitors
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin11,879 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 2,112 | 1,890 | 8,617 |
Markdown | 2 | 495 | 0 | 1,259 |
JavaScript | 8 | 121 | 170 | 649 |
HTML | 22 | 102 | 19 | 639 |
SQL | 33 | 182 | 125 | 495 |
CSS | 1 | 21 | 16 | 175 |
JSON | 1 | 0 | 0 | 45 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 53.61 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 422.00 |
Average method complexity | 5.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 87.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 1 | 3.57% |
▷ Concrete classes | 27 | 96.43% |
▷ Final classes | 0 | 0.00% |
Methods | 373 | |
▷ Static methods | 56 | 15.01% |
▷ Public methods | 359 | 96.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 3.75% |
Functions | 10 | |
▷ Named functions | 8 | 80.00% |
▷ Anonymous functions | 2 | 20.00% |
Constants | 42 | |
▷ Global constants | 30 | 71.43% |
▷ Class constants | 12 | 28.57% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin