Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/blazemeter/blaze-settings-setup.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; BlazeMeter_Settings has a deprecated constructor
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.02ms] Passed 4 tests
This is a short check of server-side resources used by BlazeMeter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.79 ▼1.94 |
Dashboard /wp-admin | 3.37 ▲0.06 | 51.57 ▲0.65 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 51.92 ▲4.32 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 84.15 ▼7.09 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.54 ▲5.46 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for BlazeMeter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲105 | 14.30 ▼0.43 | 1.80 ▼0.61 | 38.37 ▼17.13 |
Dashboard /wp-admin | 2,237 ▲49 | 6.04 ▲1.13 | 124.32 ▲5.77 | 42.50 ▼0.50 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.68 ▲0.69 | 49.33 ▲11.59 | 37.97 ▲4.51 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 18.00 ▼5.22 | 682.04 ▲23.84 | 37.83 ▼32.59 |
Media Library /wp-admin/upload.php | 1,431 ▲43 | 5.14 ▲0.93 | 112.66 ▲16.60 | 41.77 ▼1.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function getCallbackUrl() on null in wp-content/plugins/blazemeter/blaze-admin-view.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/blazemeter/blazemeter-api.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/blazemeter/blazemeter-api.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
blazemeter/blazemeter.php Passed 13 tests
The principal PHP file in "BlazeMeter" v. 1.3 is loaded by WordPress automatically on each request
51 characters long description:
BlazeMeter Plugin for load and performance testing.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,019 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 95 | 106 | 925 |
PHP | 6 | 214 | 69 | 612 |
JavaScript | 3 | 110 | 30 | 427 |
HTML | 3 | 6 | 0 | 55 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 21.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 2 | 5.00% |
▷ Public methods | 39 | 97.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
31 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/vader/images/ui-icons_cccccc_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/vader/images/ui-bg_highlight-hard_55_555555_1x100.png | 0.11KB | 0.15KB | 0.00% |
css/vader/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
css/vader/images/ui-bg_highlight-soft_35_adadad_1x100.png | 0.10KB | 0.16KB | 0.00% |