Benchmarks
Plugin footprint 83% from 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.18MB] [CPU: ▼294.34ms] Passed 4 tests
Analyzing server-side resources used by 404 Page by SeedProd
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.15 | 54.92 ▲5.27 |
Dashboard /wp-admin | 3.64 ▲0.23 | 33.83 ▲0.15 |
Posts /wp-admin/edit.php | 3.86 ▲0.22 | 37.90 ▲0.80 |
Add New Post /wp-admin/post-new.php | 7.10 ▲0.13 | 94.95 ▼1,179.27 |
Media Library /wp-admin/upload.php | 3.51 ▲0.22 | 25.17 ▲0.95 |
404 Page by SeedProd /wp-admin/options-general.php?page=seed_s404f | 3.47 | 25.24 |
Server storage [IO: ▲1.89MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 290 new files
Database: no new tables, 3 new options
New WordPress options |
---|
seed_s404f_settings_design |
seed_s404f_settings_advanced |
seed_s404f_settings_content |
Browser metrics Passed 4 tests
A check of browser resources used by 404 Page by SeedProd
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲14 | 15.77 ▼0.20 | 5.83 ▼0.09 | 2.13 ▼0.86 |
Dashboard /wp-admin | 2,897 ▲36 | 6.11 ▼0.10 | 125.33 ▼9.59 | 157.29 ▼5.94 |
Posts /wp-admin/edit.php | 2,662 ▼32 | 3.23 ▲0.01 | 63.83 ▼3.11 | 127.64 ▼16.91 |
Add New Post /wp-admin/post-new.php | 1,663 ▼56 | 15.99 ▼6.55 | 391.43 ▼19.25 | 152.73 ▼4.03 |
Media Library /wp-admin/upload.php | 1,706 ▲8 | 5.49 ▼0.01 | 146.71 ▲4.83 | 177.35 ▼8.73 |
404 Page by SeedProd /wp-admin/options-general.php?page=seed_s404f | 2,121 | 8.84 | 150.52 | 225.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 3 options in the database
- seed_s404f_settings_advanced
- seed_s404f_settings_design
- seed_s404f_settings_content
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=seed_s404f
- > User deprecated in wp-includes/functions.php+5326
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=seed_s404f
- > User deprecated in wp-includes/functions.php+5326
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 0% 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
Please take a closer look at the following
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/404-page/framework/field-types/textarea.php
- > /wp-content/plugins/404-page/framework/field-types/multiselect.php
- > /wp-content/plugins/404-page/framework/field-types/select.php
- > /wp-content/plugins/404-page/trunk/framework/field-types/textarea.php
- > /wp-content/plugins/404-page/trunk/framework/field-types/multiselect.php
- > /wp-content/plugins/404-page/trunk/framework/field-types/select.php
- 158× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: id in wp-content/plugins/404-page/framework/field-types/select.php on line 7
- > PHP Notice
Undefined variable: setting_id in wp-content/plugins/404-page/trunk/framework/field-types/select.php on line 7
- > PHP Notice
Undefined variable: id in wp-content/plugins/404-page/trunk/framework/field-types/password.php on line 6
- > PHP Notice
Undefined variable: id in wp-content/plugins/404-page/framework/field-types/multiselect.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/404-page/trunk/framework/field-types/wpeditor.php:15
- > PHP Notice
Undefined variable: setting_id in wp-content/plugins/404-page/trunk/framework/field-types/multiselect.php on line 11
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/404-page/trunk/framework/field-types/select.php on line 8
- > PHP Notice
Undefined variable: option_values in wp-content/plugins/404-page/framework/field-types/checkbox.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/404-page/trunk/framework/validations/escurlraw.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/404-page/framework/validations/email.php on line 8
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Requires at least: Version format is invalid
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== 404-page ===
)
404-page/404-page.php Passed 13 tests
The main file in "404 Page by SeedProd" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
28 characters long description:
The Ultimate 404 Page Plugin
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
Good job! No executable or dangerous file extensions detected14,255 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 152 | 208 | 7,075 |
PHP | 40 | 1,256 | 1,198 | 5,017 |
JavaScript | 15 | 644 | 504 | 2,163 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 82.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 316.00 |
Average method complexity | 5.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 362 | |
▷ Static methods | 16 | 4.42% |
▷ Public methods | 100 | 27.62% |
▷ Protected methods | 262 | 72.38% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
168 compressed PNG files occupy 0.26MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/themes/default/images/icons/forrst.png | 1.22KB | 1.30KB | 0.00% |
trunk/themes/default/images/icons/mixx.png | 1.11KB | 1.20KB | 0.00% |
trunk/themes/default/images/icons/foursquare.png | 2.26KB | 1.74KB | ▼ 23.12% |
themes/default/images/icons/xing.png | 1.60KB | 1.71KB | 0.00% |
trunk/themes/default/images/icons/wpcandy.png | 2.00KB | 1.56KB | ▼ 21.66% |