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.03MB] [CPU: ▼2.98ms] Passed 4 tests
A check of server-side resources used by 404 Site Checker
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.73 ▼4.21 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.34 ▼0.73 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.19 ▼2.43 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 96.41 ▲0.53 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.98 ▼4.54 |
404 Site Checker /wp-admin/options-general.php?page=tg_404_site_checker | 3.23 | 30.81 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by 404 Site Checker
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.15 ▼1.15 | 1.69 ▼0.23 | 43.08 ▼4.78 |
Dashboard /wp-admin | 2,213 ▲25 | 4.83 ▼0.04 | 107.88 ▼0.85 | 39.23 ▲0.21 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.02 ▲0.01 | 39.27 ▲3.98 | 34.33 ▲2.80 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 18.54 ▼4.56 | 608.41 ▼74.04 | 52.38 ▼0.36 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.17 ▼0.04 | 94.87 ▼10.41 | 41.21 ▼1.57 |
404 Site Checker /wp-admin/options-general.php?page=tg_404_site_checker | 803 | 2.06 | 22.96 | 28.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tg-404-site-checker/tg-404-site-checker.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: 404, redirection, errors
tg-404-site-checker/tg-404-site-checker.php Passed 13 tests
"404 Site Checker" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
71 characters long description:
Check other sites for the requested path and redirect there during 404.
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
There were no executable files found in this plugin133 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 19 | 74 | 133 |
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.60 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 7 | 100.00% |
▷ Public methods | 4 | 57.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 42.86% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected