Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▲2.14ms] Passed 4 tests
Server-side resources used by SubMe
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.34 | 43.82 ▲8.14 |
Dashboard /wp-admin | 3.66 ▲0.35 | 49.61 ▲1.22 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 49.65 ▲3.29 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 93.89 ▲2.09 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 37.95 ▲1.94 |
Subscribers /wp-admin/admin.php?page=sm_subscribers | 3.64 | 38.33 |
Settings /wp-admin/admin.php?page=sm_settings | 3.88 | 34.20 |
Queue /wp-admin/admin.php?page=sm_queue | 3.65 | 37.24 |
Server storage [IO: ▲0.25MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_subme_queue |
wp_subme |
New WordPress options |
---|
subme_options |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SubMe
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.10 ▼0.27 | 1.81 ▼0.04 | 43.88 ▲4.28 |
Dashboard /wp-admin | 2,228 ▲51 | 5.50 ▼0.16 | 81.97 ▼4.42 | 45.42 ▲0.60 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.04 ▲0.07 | 32.99 ▼2.78 | 41.06 ▲4.91 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 23.31 ▲0.26 | 666.56 ▲59.17 | 61.08 ▲7.97 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.19 ▼0.00 | 97.00 ▼9.96 | 46.31 ▼0.94 |
Subscribers /wp-admin/admin.php?page=sm_subscribers | 1,071 | 2.00 | 26.64 | 33.49 |
Settings /wp-admin/admin.php?page=sm_settings | 1,222 | 2.03 | 24.94 | 23.82 |
Queue /wp-admin/admin.php?page=sm_queue | 985 | 2.03 | 24.07 | 25.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (16 tag instead of maximum 10)
- Contributors: Plugin contributors not specified
subme/subme.php 92% from 13 tests
The principal PHP file in "SubMe" v. 2.0.2 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin4,260 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 711 | 629 | 3,779 |
PO File | 1 | 161 | 388 | 407 |
JavaScript | 1 | 10 | 0 | 73 |
CSS | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 200)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 173.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 463.00 |
Average method complexity | 8.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 200.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 62 | 87.32% |
▷ Protected methods | 7 | 9.86% |
▷ Private methods | 2 | 2.82% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
No PNG files were detected