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: ▲0.18MB] [CPU: ▼9.73ms] 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.55 ▲0.09 | 37.92 ▼2.69 |
Dashboard /wp-admin | 3.53 ▲0.18 | 47.65 ▼17.30 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 48.29 ▼1.11 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 83.89 ▼17.81 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 35.58 ▲1.16 |
404 Page by SeedProd /wp-admin/options-general.php?page=seed_s404f | 3.40 | 32.51 |
Server storage [IO: ▲1.89MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 290 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
seed_s404f_settings_advanced |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
seed_s404f_settings_design |
seed_s404f_settings_content |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 404 Page by SeedProd
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▼0.01 | 1.62 ▼0.34 | 38.73 ▲0.55 |
Dashboard /wp-admin | 2,202 ▲31 | 5.65 ▲0.08 | 81.15 ▼4.05 | 39.34 ▼1.05 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▲0.03 | 32.46 ▼2.98 | 34.12 ▼0.46 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.26 ▲0.33 | 663.35 ▲69.47 | 54.34 ▲2.11 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▼0.18 | 94.20 ▼0.09 | 42.71 ▲0.71 |
404 Page by SeedProd /wp-admin/options-general.php?page=seed_s404f | 1,677 | 6.61 | 141.70 | 73.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-posts
- widget_recent-comments
- seed_s404f_settings_content
- db_upgraded
- widget_theysaidso_widget
- seed_s404f_settings_advanced
- theysaidso_admin_options
- can_compress_scripts
- seed_s404f_settings_design
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=seed_s404f
- > User deprecated in wp-includes/functions.php+5463
Function 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+5463
Function 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/404-page/trunk/framework/field-types/multiselect.php
- > /wp-content/plugins/404-page/framework/field-types/textarea.php
- > /wp-content/plugins/404-page/trunk/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/select.php
- 158× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > 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
Undefined variable: id in wp-content/plugins/404-page/framework/field-types/customsocialfollow.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/404-page/trunk/framework/field-types/textbox.php:9
- > PHP Notice
Undefined variable: id in wp-content/plugins/404-page/trunk/framework/field-types/wpeditor.php on line 12
- > PHP Notice
Undefined variable: setting_id in wp-content/plugins/404-page/framework/field-types/multiselect.php on line 11
- > PHP Notice
Undefined variable: id in wp-content/plugins/404-page/framework/field-types/textarea.php on line 6
- > PHP Notice
Undefined variable: id in wp-content/plugins/404-page/framework/field-types/wpeditor.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/404-page/trunk/framework/validations/required.php on line 10
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/404-page/framework/field-types/checkbox.php on line 11
- > PHP Notice
Undefined variable: id in wp-content/plugins/404-page/trunk/framework/field-types/select.php on line 7
- > PHP Notice
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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== 404-page ===
) - Requires at least: Invalid version format
404-page/404-page.php Passed 13 tests
Analyzing the main PHP file in "404 Page by SeedProd" version 1.0.0
28 characters long description:
The Ultimate 404 Page Plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin14,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
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
168 compressed PNG files occupy 0.26MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/default/images/icons/instagram.png | 2.33KB | 1.70KB | ▼ 26.90% |
themes/default/images/icons/youtube.png | 1.57KB | 1.50KB | ▼ 4.49% |
themes/default/images/icons/mixx.png | 1.11KB | 1.20KB | 0.00% |
themes/default/images/icons/tumblr.png | 1.23KB | 1.34KB | 0.00% |
trunk/themes/default/images/icons/foursquare.png | 2.26KB | 1.74KB | ▼ 23.12% |