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
Installer ran successfully
Server metrics [RAM: ▲1.11MB] [CPU: ▼292.34ms] Passed 4 tests
This is a short check of server-side resources used by 404 Solution
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.07 | 72.13 ▲5.52 |
Dashboard /wp-admin | 4.91 ▲1.51 | 54.53 ▲13.54 |
Posts /wp-admin/edit.php | 5.12 ▲1.47 | 61.52 ▲6.05 |
Add New Post /wp-admin/post-new.php | 8.38 ▲1.41 | 120.32 ▼1,190.49 |
Media Library /wp-admin/upload.php | 4.78 ▲1.49 | 46.42 ▲9.58 |
404 Solution /wp-admin/options-general.php?page=abj404_solution | 4.80 | 49.40 |
Server storage [IO: ▲1.00MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 101 new files
Database: 5 new tables, no new options
New tables |
---|
wp_abj404_permalink_cache |
wp_abj404_spelling_cache |
wp_abj404_lookup |
wp_abj404_redirects |
wp_abj404_logsv2 |
Browser metrics Passed 4 tests
A check of browser resources used by 404 Solution
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,867 ▲112 | 15.86 ▲0.36 | 11.57 ▲4.02 | 4.88 ▲1.15 |
Dashboard /wp-admin | 2,959 ▲40 | 6.43 ▲0.06 | 183.56 ▼56.56 | 195.22 ▼10.90 |
Posts /wp-admin/edit.php | 2,723 ▲5 | 3.44 ▲0.02 | 87.19 ▼2.81 | 180.22 ▼11.50 |
Add New Post /wp-admin/post-new.php | 1,665 ▼49 | 16.67 ▲0.89 | 635.31 ▼30.68 | 219.12 ▲1.85 |
Media Library /wp-admin/upload.php | 1,735 ▲5 | 5.69 ▼0.04 | 193.49 ▼8.38 | 255.09 ▲11.03 |
404 Solution /wp-admin/options-general.php?page=abj404_solution | 1,916 | 3.75 | 94.66 | 240.48 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.01MB] 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
- Zombie tables detected upon uninstall: 5 tables
- wp_abj404_redirects
- wp_abj404_lookup
- wp_abj404_permalink_cache
- wp_abj404_spelling_cache
- wp_abj404_logsv2
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > 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: Call to undefined function plugin_dir_path() in wp-content/plugins/404-solution/404-solution.php:34
- > 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
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:230
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
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
10 plugin tags: 301, 302, temporary redirect, error, permanent redirect...
404-solution/404-solution.php Passed 13 tests
Analyzing the main PHP file in "404 Solution" version 2.30.7
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 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin11,019 lines of code in 92 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 1,994 | 1,757 | 8,030 |
Markdown | 2 | 421 | 0 | 1,073 |
JavaScript | 8 | 120 | 170 | 642 |
HTML | 21 | 91 | 18 | 608 |
SQL | 31 | 160 | 113 | 449 |
CSS | 1 | 20 | 16 | 172 |
JSON | 1 | 0 | 0 | 45 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 52.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 369.00 |
Average method complexity | 4.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 1 | 3.85% |
▷ Concrete classes | 25 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 356 | |
▷ Static methods | 54 | 15.17% |
▷ Public methods | 343 | 96.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 3.65% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 40 | |
▷ Global constants | 30 | 75.00% |
▷ Class constants | 10 | 25.00% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin