Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼0.35ms] Passed 4 tests
This is a short check of server-side resources used by WordPress Hosting Benchmark tool
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.15 ▲4.16 |
Dashboard /wp-admin | 3.36 ▲0.06 | 43.19 ▼4.63 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 45.49 ▼3.21 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 93.57 ▲3.46 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.55 ▲2.99 |
WP Benchmark tool /wp-admin/tools.php?page=wp_benchmark_io | 3.25 | 32.55 |
Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
wp-benchmark-io-history |
widget_theysaidso_widget |
wp-benchmark-io-settings |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Hosting Benchmark tool
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▼0.02 | 1.81 ▲0.27 | 43.06 ▲1.00 |
Dashboard /wp-admin | 2,202 ▲22 | 5.64 ▲0.10 | 82.18 ▼4.74 | 40.85 ▲0.88 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.04 | 35.90 ▼1.80 | 38.95 ▲4.73 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.28 ▲0.24 | 630.00 ▼36.85 | 53.07 ▼0.68 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.22 ▲0.03 | 95.75 ▲2.97 | 41.44 ▼3.02 |
WP Benchmark tool /wp-admin/tools.php?page=wp_benchmark_io | 923 | 1.99 | 21.76 | 48.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- wp-benchmark-io-settings
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- wp-benchmark-io-history
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wpbenchmark/wp-benchmark-io.php
- > /wp-content/plugins/wpbenchmark/class.wpbenchmarkio.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% 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 need to be fixed:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wpbenchmark/wp-benchmark-io.php 85% from 13 tests
"WordPress Hosting Benchmark tool" version 1.3.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Name the main plugin file the same as the plugin slug ("wpbenchmark.php" instead of "wp-benchmark-io.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,669 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 686 | 164 | 1,669 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 103.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 167.00 |
Average method complexity | 5.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.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 | 50 | |
▷ Static methods | 6 | 12.00% |
▷ Public methods | 50 | 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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin