Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.35MB] [CPU: ▼289.90ms] Passed 4 tests
Analyzing server-side resources used by 404page - your smart custom 404 error page
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.30 | 59.65 ▲9.19 |
Dashboard /wp-admin | 3.76 ▲0.36 | 35.89 ▲2.82 |
Posts /wp-admin/edit.php | 4.05 ▲0.41 | 39.39 ▲4.99 |
Add New Post /wp-admin/post-new.php | 7.29 ▲0.33 | 100.12 ▼1,166.51 |
Media Library /wp-admin/upload.php | 3.70 ▲0.40 | 27.62 ▼0.90 |
404 Error Page /wp-admin/themes.php?page=404pagesettings | 3.83 | 25.19 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 1 new option
New WordPress options |
---|
404page_data |
Browser metrics Passed 4 tests
An overview of browser requirements for 404page - your smart custom 404 error page
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,790 ▲36 | 16.26 ▲0.69 | 6.99 ▲0.78 | 2.43 ▼0.05 |
Dashboard /wp-admin | 2,893 ▲35 | 6.13 ▼0.05 | 115.73 ▼16.51 | 150.42 ▼11.99 |
Posts /wp-admin/edit.php | 2,690 ▼0 | 3.23 ▲0.00 | 63.81 ▲1.56 | 138.41 ▲1.24 |
Add New Post /wp-admin/post-new.php | 1,776 ▲116 | 21.02 ▲4.71 | 450.04 ▲42.59 | 160.44 ▲2.42 |
Media Library /wp-admin/upload.php | 1,706 ▲8 | 5.51 ▲0.03 | 136.39 ▼6.61 | 187.85 ▲2.05 |
404 Error Page /wp-admin/themes.php?page=404pagesettings | 1,294 | 2.92 | 59.27 | 339.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
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
Everything seems fine, however this is by no means 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
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PPF07_Plugin' not found in wp-content/plugins/404page/inc/ppf/ppf-plugin-addon.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPF07_SubClass' not found in wp-content/plugins/404page/inc/ppf/ppf-admin.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPF07_Class' not found in wp-content/plugins/404page/inc/ppf/ppf-plugin.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPF07_SubClass' not found in wp-content/plugins/404page/inc/ppf/ppf-settings.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPF07_Class' not found in wp-content/plugins/404page/inc/ppf/ppf-subclass.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 21 tag instead of maximum 10
404page/404page.php Passed 13 tests
The main PHP file in "404page - your smart custom 404 error page" ver. 11.3.0 adds more information about the plugin and also serves as the entry point for this plugin
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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,998 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 1,294 | 1,478 | 1,557 |
CSS | 3 | 63 | 3 | 330 |
JavaScript | 5 | 42 | 30 | 106 |
SVG | 5 | 0 | 0 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 19.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 131.00 |
Average method complexity | 2.56 |
▷ 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 | 139 | |
▷ Static methods | 1 | 0.72% |
▷ Public methods | 123 | 88.49% |
▷ Protected methods | 5 | 3.60% |
▷ Private methods | 11 | 7.91% |
Functions | 16 | |
▷ Named functions | 9 | 56.25% |
▷ Anonymous functions | 7 | 43.75% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
7 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/pluginicon.png | 1.15KB | 0.59KB | ▼ 48.76% |
assets/img/videos/404page_advanced_compatibility_mode.png | 32.29KB | 13.39KB | ▼ 58.54% |
assets/img/videos/404page_advanced_410_trashed_objects.png | 30.50KB | 12.48KB | ▼ 59.08% |
assets/img/videos/404page-advanced-settings-quick-overview.png | 91.10KB | 42.95KB | ▼ 52.85% |
assets/img/videos/404page-brief-intro.png | 40.19KB | 16.32KB | ▼ 59.39% |