Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/hosting-stability-meter/class.hosting-stability-meter.php+100
Non-static method HostingStabilityMeter::get_settings() should not be called statically
Server metrics [RAM: ▲0.16MB] [CPU: ▼2.26ms] Passed 4 tests
Analyzing server-side resources used by Hosting Stability Meter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 45.43 ▼2.59 |
Dashboard /wp-admin | 3.49 ▲0.18 | 53.24 ▼1.90 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 57.63 ▲7.26 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 96.77 ▼10.39 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 41.52 ▲5.84 |
Hosting Stability Meter /wp-admin/tools.php?page=hosting-stability-meter | 3.36 | 32.98 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_hostingstabilitymeter_stat |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
hostingstabilitymeter_tests_made |
hostingstabilitymeter_host_hash |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Hosting Stability Meter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.72 ▼0.01 | 1.78 ▼0.45 | 44.33 ▼2.21 |
Dashboard /wp-admin | 2,199 ▲22 | 5.65 ▲0.04 | 92.65 ▼9.61 | 41.23 ▼3.87 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▼0.01 | 43.64 ▲3.11 | 34.70 ▼3.45 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.22 ▲0.36 | 635.85 ▼70.97 | 58.56 ▼12.19 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.23 ▲0.05 | 103.48 ▼3.03 | 41.54 ▼4.34 |
Hosting Stability Meter /wp-admin/tools.php?page=hosting-stability-meter | 1,617 | 5.91 | 205.78 | 71.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 failed, leaving 1 table in the database
- wp_hostingstabilitymeter_stat
- This plugin does not fully uninstall, leaving 8 options in the database
- hostingstabilitymeter_host_hash
- can_compress_scripts
- theysaidso_admin_options
- hostingstabilitymeter_tests_made
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=hosting-stability-meter
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method HostingStabilityMeterAdmin::display_page() should not be called statically
- > GET request to /wp-admin/tools.php?page=hosting-stability-meter
- > Deprecated in wp-content/plugins/hosting-stability-meter/views/stat.php+19
Non-static method HostingStabilityMeterAdmin::echo_current_locale() should not be called statically
- > GET request to /wp-admin/tools.php?page=hosting-stability-meter
- > Deprecated in wp-content/plugins/hosting-stability-meter/views/stat.php+113
Non-static method HostingStabilityMeterAdmin::echo_graph_data() should not be called statically
- > GET request to /wp-admin/tools.php?page=hosting-stability-meter
- > Deprecated in wp-admin/includes/template.php+1771
Non-static method HostingStabilityMeterAdmin::echo_settings_section_main() should not be called statically
- > GET request to /wp-admin/tools.php?page=hosting-stability-meter
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method HostingStabilityMeterAdmin::echo_settings_section_main_th_cpu() should not be called statically
- 7 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=hosting-stability-meter
- > Deprecated in wp-content/plugins/hosting-stability-meter/class.hosting-stability-meter-admin.php+164
Non-static method HostingStabilityMeter::get_settings() should not be called statically
- > GET request to /wp-admin/tools.php?page=hosting-stability-meter
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method HostingStabilityMeterAdmin::echo_settings_section_main_th_disk() should not be called statically
- 6 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=hosting-stability-meter
- > Deprecated in wp-content/plugins/hosting-stability-meter/class.hosting-stability-meter.php+324
Non-static method HostingStabilityMeter::sanitize_settings() should not be called statically
- > GET request to /wp-admin/tools.php?page=hosting-stability-meter
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method HostingStabilityMeterAdmin::echo_settings_section_main_th_db() should not be called statically
- > GET request to /wp-admin/tools.php?page=hosting-stability-meter
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method HostingStabilityMeterAdmin::echo_settings_section_main_interval_test() should not be called statically
- > GET request to /wp-admin/tools.php?page=hosting-stability-meter
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method HostingStabilityMeterAdmin::echo_settings_section_main_allow_mail() should not be called statically
- 3 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=hosting-stability-meter
- > Deprecated in wp-content/plugins/hosting-stability-meter/class.hosting-stability-meter-admin.php+170
Non-static method HostingStabilityMeterAdmin::echo_field_description() should not be called statically
- > GET request to /wp-admin/tools.php?page=hosting-stability-meter
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method HostingStabilityMeterAdmin::echo_settings_section_main_mail_addr() should not be called statically
- > GET request to /wp-admin/tools.php?page=hosting-stability-meter
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method HostingStabilityMeterAdmin::echo_settings_section_main_allow_send() should not be called statically
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/hosting-stability-meter/views/stat.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_main_site() in wp-content/plugins/hosting-stability-meter/hosting-stability-meter.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
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
7 plugin tags: benchmark, hosting, hardware, rating, speed...
hosting-stability-meter/hosting-stability-meter.php 92% from 13 tests
The primary PHP file in "Hosting Stability Meter" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 181 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,148 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 115 | 184 | 1,122 |
HTML | 1 | 0 | 0 | 26 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 49.33 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 5.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 17 | 48.57% |
▷ Public methods | 31 | 88.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 11.43% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 58 | |
▷ Global constants | 1 | 1.72% |
▷ Class constants | 57 | 98.28% |
▷ Public constants | 57 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin