Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/404-error-monitor/index.php+51
Methods with the same name as their class will not be constructors in a future version of PHP; errorMonitor has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼63.05ms] Passed 4 tests
An overview of server-side resources used by 404 Error Monitor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 5.28 ▼42.42 |
Dashboard /wp-admin | 2.19 ▼1.15 | 5.99 ▼57.87 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 7.43 ▼48.16 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 8.15 ▼103.74 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 6.87 ▼28.97 |
404 Error Monitor /wp-admin/admin.php?page=errorMonitor | 2.19 | 7.61 |
Settings /wp-admin/admin.php?page=errorMonitorSettings | 2.19 | 7.95 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: 1 new table, 12 new options
New tables |
---|
wp_errors_404_logs |
New WordPress options |
---|
theysaidso_admin_options |
404-error-monitor-ext_filter |
404-error-monitor-clean_after |
can_compress_scripts |
404-error-monitor-min_hit_count |
404-error-monitor-path_filter |
widget_recent-comments |
404-error-monitor-allow_editors |
widget_recent-posts |
404-error-monitor-last_clean |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for 404 Error Monitor
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲70 | 14.72 ▲0.07 | 1.59 ▼0.44 | 37.86 ▼13.10 |
Dashboard /wp-admin | 2,229 ▲49 | 5.65 ▲0.08 | 89.38 ▼2.02 | 38.68 ▼3.13 |
Posts /wp-admin/edit.php | 2,131 ▲28 | 2.02 ▼0.01 | 40.06 ▼1.56 | 38.53 ▲1.64 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 21.11 ▼2.31 | 665.93 ▼21.25 | 46.40 ▼4.84 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.18 ▲0.03 | 110.24 ▲4.24 | 49.06 ▲0.75 |
404 Error Monitor /wp-admin/admin.php?page=errorMonitor | 918 | 2.02 | 29.04 | 31.45 |
Settings /wp-admin/admin.php?page=errorMonitorSettings | 960 | 1.81 | 26.64 | 29.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/404-error-monitor/index.php+51
Methods with the same name as their class will not be constructors in a future version of PHP; errorMonitor has a deprecated constructor
- Zombie tables detected upon uninstall: 1 table
- wp_errors_404_logs
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
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)
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=errorMonitorSettings
- > Deprecated in wp-content/plugins/404-error-monitor/index.php+51
Methods with the same name as their class will not be constructors in a future version of PHP; errorMonitor has a deprecated constructor
SRP 0% 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
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/404-error-monitor/includes/errorList.php
- > /wp-content/plugins/404-error-monitor/includes/postbox.php
- > /wp-content/plugins/404-error-monitor/includes/settings.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/404-error-monitor/includes/DataTools.php on line 22
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/404-error-monitor/includes/DataTools.php on line 22
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/404-error-monitor/includes/DataTools.php on line 22
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Donate link: Invalid url: ""
404-error-monitor/index.php 85% from 13 tests
The principal PHP file in "404 Error Monitor" v. 1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("404-error-monitor.php" instead of "index.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 206 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin993 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 138 | 195 | 835 |
JavaScript | 1 | 18 | 16 | 101 |
CSS | 1 | 15 | 16 | 57 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 40.33 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 4.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 10 | 27.78% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected