Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼5.65ms] Passed 4 tests
Server-side resources used by Smart Custom 404 error page [404page]
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 40.96 ▲1.17 |
Dashboard /wp-admin | 3.43 ▲0.13 | 46.89 ▼4.66 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 43.97 ▼5.70 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 83.27 ▼11.45 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.14 ▼0.78 |
404 Error Page /wp-admin/themes.php?page=404pagesettings | 3.33 | 35.63 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
404page_data |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Smart Custom 404 error page [404page]
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.59 ▼0.79 | 2.16 ▲0.54 | 47.65 ▲5.88 |
Dashboard /wp-admin | 2,210 ▲18 | 5.84 ▲0.91 | 110.24 ▲3.77 | 42.30 ▲1.56 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.03 ▲0.02 | 35.30 ▲1.64 | 31.67 ▼2.29 |
Add New Post /wp-admin/post-new.php | 6,353 ▲4,833 | 27.64 ▲4.27 | 911.89 ▲280.47 | 59.57 ▲7.92 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.30 ▲0.06 | 95.12 ▼1.85 | 41.64 ▲0.70 |
404 Error Page /wp-admin/themes.php?page=404pagesettings | 1,006 | 1.94 | 30.61 | 33.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'PPF08_SubClass' not found in wp-content/plugins/404page/inc/ppf/ppf-settings.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPF08_Class' not found in wp-content/plugins/404page/inc/ppf/ppf-subclass.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPF08_Plugin' not found in wp-content/plugins/404page/inc/ppf/ppf-plugin-addon.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPF08_SubClass' not found in wp-content/plugins/404page/inc/ppf/ppf-admin.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPF08_Class' not found in wp-content/plugins/404page/inc/ppf/ppf-plugin.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
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
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
404page/404page.php Passed 13 tests
"Smart Custom 404 error page [404page]" version 11.4.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
114 characters long description:
Custom 404 the easy way! Set any page as custom 404 error page. No coding needed. Works with (almost) every Theme.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,090 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 1,348 | 1,538 | 1,578 |
CSS | 3 | 60 | 3 | 315 |
JavaScript | 6 | 64 | 30 | 168 |
JSON | 1 | 0 | 0 | 24 |
SVG | 5 | 0 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 6 | 50.00% |
▷ Concrete classes | 6 | 50.00% |
▷ Final classes | 0 | 0.00% |
Methods | 140 | |
▷ Static methods | 1 | 0.71% |
▷ Public methods | 125 | 89.29% |
▷ Protected methods | 5 | 3.57% |
▷ Private methods | 10 | 7.14% |
Functions | 20 | |
▷ Named functions | 10 | 50.00% |
▷ Anonymous functions | 10 | 50.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
6 PNG files occupy 0.27MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/videos/404page_advanced_410_trashed_objects.png | 30.50KB | 12.48KB | ▼ 59.08% |
assets/img/videos/404page_advanced_url_guessing.png | 39.22KB | 16.46KB | ▼ 58.04% |
assets/img/videos/404page-brief-intro.png | 40.19KB | 16.32KB | ▼ 59.39% |
assets/img/videos/404page_advanced_compatibility_mode.png | 32.29KB | 13.39KB | ▼ 58.54% |
assets/img/videos/404page-advanced-settings-quick-overview.png | 91.10KB | 42.95KB | ▼ 52.85% |