10% blazemeter

Code Review | BlazeMeter

WordPress plugin BlazeMeter scored10%from 54 tests.

About plugin

  • Plugin page: blazemeter
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 5, 2013
  • Latest release: Apr 10, 2013
  • Number of updates: 12
  • Update frequency: every 3.3 days
  • Top authors: nofearinc (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /3,658 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.79 ▼1.94
Dashboard /wp-admin3.37 ▲0.0651.57 ▲0.65
Posts /wp-admin/edit.php3.46 ▲0.1151.92 ▲4.32
Add New Post /wp-admin/post-new.php5.96 ▲0.0884.15 ▼7.09
Media Library /wp-admin/upload.php3.29 ▲0.0639.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲10514.30 ▼0.431.80 ▼0.6138.37 ▼17.13
Dashboard /wp-admin2,237 ▲496.04 ▲1.13124.32 ▲5.7742.50 ▼0.50
Posts /wp-admin/edit.php2,132 ▲432.68 ▲0.6949.33 ▲11.5937.97 ▲4.51
Add New Post /wp-admin/post-new.php1,543 ▲1018.00 ▼5.22682.04 ▲23.8437.83 ▼32.59
Media Library /wp-admin/upload.php1,431 ▲435.14 ▲0.93112.66 ▲16.6041.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

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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
CSS695106925
PHP621469612
JavaScript311030427
HTML36055

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 code0.33
Average class complexity21.25
▷ Minimum class complexity2.00
▷ Maximum class complexity40.00
Average method complexity3.02
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods40
▷ Static methods25.00%
▷ Public methods3997.50%
▷ Protected methods00.00%
▷ Private methods12.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
css/vader/images/ui-icons_cccccc_256x240.png4.27KB4.11KB▼ 3.78%
css/vader/images/ui-bg_highlight-hard_55_555555_1x100.png0.11KB0.15KB0.00%
css/vader/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
css/vader/images/ui-bg_highlight-soft_35_adadad_1x100.png0.10KB0.16KB0.00%