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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.15ms] Passed 4 tests
Server-side resources used by Developer Loggers for Simple History
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.27 ▼0.48 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.06 ▼5.99 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.81 ▼0.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.55 ▼25.81 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.97 ▲1.13 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Developer Loggers for Simple History
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.29 ▼1.30 | 1.72 ▲0.15 | 43.73 ▼0.34 |
Dashboard /wp-admin | 2,209 ▲21 | 5.83 ▼0.04 | 95.29 ▼9.26 | 40.63 ▼0.65 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 1.97 ▼0.03 | 33.31 ▼2.14 | 35.90 ▼0.66 |
Add New Post /wp-admin/post-new.php | 1,539 ▲25 | 22.97 ▲5.54 | 596.17 ▼51.60 | 51.00 ▲0.04 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.21 ▲0.05 | 104.98 ▼4.44 | 45.75 ▼1.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SimpleLogger' not found in wp-content/plugins/developer-loggers-for-simple-history/loggers/Slackit.php:7
- > PHP Fatal error
Uncaught Error: Class 'SimpleLogger' not found in wp-content/plugins/developer-loggers-for-simple-history/loggers/CPUUsageLogger.php:3
- > PHP Fatal error
Uncaught Error: Class 'SimpleLogger' not found in wp-content/plugins/developer-loggers-for-simple-history/loggers/HTTP_Logger.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/developer-loggers-for-simple-history/tests/test-simplehistory-dev-loggers.php:3
- > PHP Fatal error
Uncaught Error: Class 'SimpleLogger' not found in wp-content/plugins/developer-loggers-for-simple-history/loggers/FourOhFourLogger.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/developer-loggers-for-simple-history/developer_loggers.php:26
- > PHP Fatal error
Uncaught Error: Class 'SimpleLogger' not found in wp-content/plugins/developer-loggers-for-simple-history/loggers/FrontEndClick_Logger.php:3
- > PHP Fatal error
Uncaught Error: Class 'SimpleLogger' not found in wp-content/plugins/developer-loggers-for-simple-history/loggers/ErrorLog_Logger.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/developer-loggers-for-simple-history/templates/settings.php:8
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/developer-loggers-for-simple-history/tests/bootstrap.php on line 8
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: debug, wp_mail, developer, simple history, administrators...
developer-loggers-for-simple-history/developer_loggers.php 92% from 13 tests
The main PHP script in "Developer Loggers for Simple History" version 0.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("developer-loggers-for-simple-history.php" instead of "developer_loggers.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,111 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 504 | 325 | 989 |
Bourne Shell | 1 | 21 | 6 | 85 |
Markdown | 1 | 9 | 0 | 20 |
XML | 1 | 1 | 0 | 17 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 1 | 1.79% |
▷ Public methods | 56 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 3 | 17.65% |
▷ Anonymous functions | 14 | 82.35% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin