Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.64MB] [CPU: ▲998.58ms] 50% from 4 tests
Server-side resources used by Sites Monitor
The following require your attention
- CPU: You should keep total CPU usage under 500.00ms (currently 1,039.87ms on /wp-admin/admin.php?page=freemius)
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 998.58ms on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.14 ▲0.68 | 1,043.92 ▲1,004.99 |
Dashboard /wp-admin | 3.96 ▲0.62 | 1,051.30 ▲991.03 |
Posts /wp-admin/edit.php | 4.02 ▲0.66 | 1,048.70 ▲1,001.32 |
Add New Post /wp-admin/post-new.php | 6.49 ▲0.61 | 1,092.87 ▲996.99 |
Media Library /wp-admin/upload.php | 3.89 ▲0.66 | 1,041.23 ▲1,009.82 |
Sites Monitor /wp-admin/options-general.php?page=wp-sites-monitor | 4.12 | 2,961.72 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 4.21 | 1,039.87 |
Server storage [IO: ▲3.54MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 256 new files
Database: 1 new table, 15 new options
New tables |
---|
wp_wpsm_sites |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
wpsm_site_url |
widget_recent-comments |
can_compress_scripts |
wpsm_type_of_website |
wpsm_site_interval |
wpsm_site_ap |
fs_debug_mode |
fs_active_plugins |
... |
Browser metrics Passed 4 tests
Sites Monitor: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲182 | 17.55 ▲3.20 | 115.50 ▲113.92 | 33.14 ▼8.13 |
Dashboard /wp-admin | 2,216 ▲41 | 5.53 ▼0.12 | 74.79 ▼40.32 | 41.19 ▲0.04 |
Posts /wp-admin/edit.php | 2,125 ▲22 | 1.98 ▼0.04 | 34.36 ▼2.02 | 35.41 ▲0.43 |
Add New Post /wp-admin/post-new.php | 1,674 ▲148 | 20.18 ▼2.95 | 599.94 ▼47.46 | 37.72 ▼18.62 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.08 ▼0.11 | 93.08 ▼11.94 | 43.12 ▲3.40 |
Sites Monitor /wp-admin/options-general.php?page=wp-sites-monitor | 1,000 | 2.12 | 29.58 | 60.25 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,073 | 1.67 | 23.36 | 27.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/sites-monitor/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_wpsm_sites
- The uninstall procedure has failed, leaving 15 options in the database
- fs_accounts
- wpsm_site_username
- widget_recent-comments
- can_compress_scripts
- wpsm_site_url
- wpsm_site_interval
- fs_active_plugins
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3 in sites-monitor/assets to your readme.txt
sites-monitor/sites-monitor.php Passed 13 tests
"Sites Monitor" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
51 characters long description:
Monitor your websites and be in charge of the data.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected37,549 lines of code in 207 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 158 | 8,554 | 18,787 | 35,983 |
CSS | 17 | 562 | 119 | 1,071 |
PO File | 1 | 94 | 229 | 206 |
JavaScript | 7 | 34 | 62 | 201 |
JSON | 23 | 0 | 0 | 85 |
Markdown | 1 | 1 | 0 | 3 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 60.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 78 | |
▷ Abstract classes | 2 | 2.56% |
▷ Concrete classes | 76 | 97.44% |
▷ Final classes | 1 | 1.32% |
Methods | 1,417 | |
▷ Static methods | 225 | 15.88% |
▷ Public methods | 1,010 | 71.28% |
▷ Protected methods | 18 | 1.27% |
▷ Private methods | 389 | 27.45% |
Functions | 110 | |
▷ Named functions | 106 | 96.36% |
▷ Anonymous functions | 4 | 3.64% |
Constants | 150 | |
▷ Global constants | 103 | 68.67% |
▷ Class constants | 47 | 31.33% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/sites-monitor.png | 16.98KB | 8.73KB | ▼ 48.55% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |