Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▲0.14ms] Passed 4 tests
A check of server-side resources used by Benchmark
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.62 ▲2.72 |
Dashboard /wp-admin | 3.36 ▲0.06 | 51.70 ▲3.78 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 52.85 ▼0.26 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 90.82 ▼5.21 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 42.70 ▲3.33 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Benchmark
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 13.22 ▼1.15 | 4.82 ▲3.07 | 41.78 ▼1.09 |
Dashboard /wp-admin | 2,226 ▲35 | 5.81 ▲0.73 | 98.07 ▼7.27 | 37.42 ▼5.53 |
Posts /wp-admin/edit.php | 2,115 ▲23 | 2.02 ▲0.02 | 40.17 ▲2.17 | 35.09 ▲1.72 |
Add New Post /wp-admin/post-new.php | 1,534 ▲14 | 17.71 ▼5.34 | 647.94 ▼16.09 | 59.81 ▼1.09 |
Media Library /wp-admin/upload.php | 1,414 ▲23 | 4.21 ▼0.02 | 94.64 ▼21.76 | 44.87 ▼3.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
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
Even though everything seems fine, this is not an exhaustive test
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 register_activation_hook() in wp-content/plugins/benchmark/benchmark.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/benchmark/lib/benchmarkMenu.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
benchmark/benchmark.php Passed 13 tests
The principal PHP file in "Benchmark" v. 1.1 is loaded by WordPress automatically on each request
53 characters long description:
Benchmark your WordPress server, network and database
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
Everything looks great! No dangerous files found in this plugin416 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 7 | 9 | 305 |
JavaScript | 1 | 4 | 0 | 83 |
CSS | 1 | 0 | 0 | 28 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 16 | 76.19% |
▷ Public methods | 18 | 85.71% |
▷ Protected methods | 1 | 4.76% |
▷ Private methods | 2 | 9.52% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin