Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▲0.28ms] Passed 4 tests
A check of server-side resources used by Stop Confusion
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 35.11 ▼3.51 |
Dashboard /wp-admin | 3.37 ▲0.07 | 47.30 ▼2.62 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 46.98 ▲1.46 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 95.32 ▲5.79 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 38.21 ▲6.33 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_stop_confusion_security_alerts |
wp_stop_confusion_last_check |
wp_stop_confusion_theme_check |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Stop Confusion: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲56 | 13.23 ▼1.17 | 1.60 ▼0.24 | 40.35 ▼6.70 |
Dashboard /wp-admin | 2,208 ▲20 | 4.85 ▼1.00 | 109.39 ▲8.44 | 41.90 ▼1.99 |
Posts /wp-admin/edit.php | 2,091 ▼1 | 2.03 ▲0.02 | 38.57 ▲3.18 | 33.58 ▲1.39 |
Add New Post /wp-admin/post-new.php | 1,525 ▼12 | 23.13 ▼0.16 | 588.24 ▼60.13 | 55.12 ▲2.94 |
Media Library /wp-admin/upload.php | 1,390 ▼1 | 4.20 ▼0.00 | 94.29 ▼6.44 | 39.22 ▼3.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables detected upon uninstall: 3 tables
- wp_stop_confusion_security_alerts
- wp_stop_confusion_last_check
- wp_stop_confusion_theme_check
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/stop-confusion/admin/view.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/stop-confusion/stop-confusion.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
2 plugin tags: theme-check, security
stop-confusion/stop-confusion.php 92% from 13 tests
The main file in "Stop Confusion" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 167 characters long)
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
Good job! No executable or dangerous file extensions detected564 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 76 | 22 | 406 |
JavaScript | 1 | 30 | 18 | 146 |
CSS | 1 | 3 | 0 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 75.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 24.14% |
Functions | 15 | |
▷ Named functions | 11 | 73.33% |
▷ Anonymous functions | 4 | 26.67% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected