Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.90MB] [CPU: ▲3.54ms] 75% from 4 tests
An overview of server-side resources used by Heartbeat Control
Please take the time to fix the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 1,396.58ms on /wp-admin/options-general.php?page=heartbeat_control_settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.63 | 50.57 ▲13.75 |
Dashboard /wp-admin | 4.35 ▲1.04 | 57.20 ▲7.20 |
Posts /wp-admin/edit.php | 4.37 ▲1.01 | 57.72 ▲9.47 |
Add New Post /wp-admin/post-new.php | 6.87 ▲0.98 | 93.47 ▼11.57 |
Media Library /wp-admin/upload.php | 4.21 ▲0.98 | 44.40 ▲9.05 |
Heartbeat Control /wp-admin/options-general.php?page=heartbeat_control_settings | 4.84 | 1,396.58 |
Server storage [IO: ▲3.99MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 415 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
heartbeat_control_settings |
db_upgraded |
heartbeat_control_version |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Heartbeat Control
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.42 ▼0.08 | 2.14 ▲0.61 | 39.74 ▼5.59 |
Dashboard /wp-admin | 2,213 ▲33 | 5.72 ▲0.09 | 90.62 ▼0.11 | 36.56 ▼6.89 |
Posts /wp-admin/edit.php | 2,114 ▲11 | 1.98 ▼0.05 | 34.04 ▼2.88 | 32.19 ▼3.59 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.22 ▲0.18 | 684.47 ▼28.38 | 59.43 ▼1.61 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.32 ▲0.07 | 102.82 ▲2.18 | 44.99 ▲1.10 |
Heartbeat Control /wp-admin/options-general.php?page=heartbeat_control_settings | 1,717 | 6.31 | 139.68 | 69.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- heartbeat_control_version
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- heartbeat_control_settings
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/heartbeat-control/Plugin_Card_Helper.php
- > /wp-content/plugins/heartbeat-control/Settings.php
- > /wp-content/plugins/heartbeat-control/Notices.php
- > /wp-content/plugins/heartbeat-control/Imagify_Partner.php
- > /wp-content/plugins/heartbeat-control/views/admin-page.php
- 40× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/heartbeat-control/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Select' not found in wp-content/plugins/heartbeat-control/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Select_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/heartbeat-control/vendor/cmb2/cmb2/includes/types/CMB2_Type_Counter_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/heartbeat-control/vendor/cmb2/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/heartbeat-control/vendor/cmb2/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup' not found in wp-content/plugins/heartbeat-control/vendor/cmb2/cmb2/includes/CMB2_Options_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function Heartbeat_Control\\plugin_dir_path() in wp-content/plugins/heartbeat-control/heartbeat-control.php:18
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/heartbeat-control/vendor/cmb2/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/heartbeat-control/vendor/cmb2/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/heartbeat-control/vendor/cmb2/cmb2/includes/types/CMB2_Type_Title.php:13
- > 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 issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: server resources, admin-ajax, heartbeat api, heartbeat control, heartbeat...
heartbeat-control/heartbeat-control.php Passed 13 tests
"Heartbeat Control" version 2.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
44 characters long description:
Completely controls the WordPress heartbeat.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected57,205 lines of code in 251 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 73 | 2,621 | 7,533 | 9,187 |
JSON | 4 | 0 | 0 | 6,701 |
CSS | 14 | 295 | 1,196 | 5,077 |
JavaScript | 8 | 378 | 588 | 1,530 |
Sass | 18 | 306 | 29 | 1,421 |
Markdown | 4 | 251 | 0 | 772 |
SVG | 9 | 0 | 9 | 175 |
XML | 1 | 6 | 3 | 19 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 20.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 78 | |
▷ Abstract classes | 9 | 11.54% |
▷ Concrete classes | 69 | 88.46% |
▷ Final classes | 0 | 0.00% |
Methods | 658 | |
▷ Static methods | 125 | 19.00% |
▷ Public methods | 547 | 83.13% |
▷ Protected methods | 105 | 15.96% |
▷ Private methods | 6 | 0.91% |
Functions | 40 | |
▷ Named functions | 35 | 87.50% |
▷ Anonymous functions | 5 | 12.50% |
Constants | 19 | |
▷ Global constants | 6 | 31.58% |
▷ Class constants | 13 | 68.42% |
▷ Public constants | 13 | 100.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
20 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/laptop.png | 56.45KB | 17.64KB | ▼ 68.75% |
vendor/cmb2/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/img/noun_SEO_737036.png | 1.93KB | 1.92KB | ▼ 0.81% |
vendor/cmb2/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
vendor/cmb2/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |