Benchmarks
Plugin footprint 83% 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.01MB] [CPU: ▼2.85ms] Passed 4 tests
A check of server-side resources used by CMC ROLE
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.44 ▼3.58 |
Dashboard /wp-admin | 3.32 ▲0.01 | 43.94 ▼1.45 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.75 ▼4.05 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.08 ▼2.32 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.65 ▲0.63 |
CMC Role /wp-admin/users.php?page=cmcrm | 3.13 | 26.29 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
cmc_role_settings |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for CMC ROLE
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.65 ▼0.59 | 4.16 ▲2.37 | 37.63 ▼5.88 |
Dashboard /wp-admin | 2,210 ▲18 | 4.84 ▼0.06 | 106.60 ▼1.87 | 43.13 ▲4.63 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.00 ▲0.00 | 39.52 ▲1.27 | 37.58 ▲5.51 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.30 ▲0.16 | 619.61 ▼83.84 | 51.98 ▼1.64 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.17 ▼0.01 | 135.92 ▲31.22 | 51.35 ▲6.66 |
CMC Role /wp-admin/users.php?page=cmcrm | 1,718 | 1.84 | 28.30 | 32.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- cmc_role_settings
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/users.php?page=cmcrm
- > Notice in wp-content/plugins/cmc-role/include/class-cmc-role-table.php+187
Undefined index: action2
- 2 occurences, only the last one shown
- > GET request to /wp-admin/users.php?page=cmcrm
- > Notice in wp-content/plugins/cmc-role/page/admin.php+66
Undefined index: active
- 4 occurences, only the last one shown
- > GET request to /wp-admin/users.php?page=cmcrm
- > Notice in wp-content/plugins/cmc-role/page/admin.php+67
Undefined index: class
- 2 occurences, only the last one shown
- > GET request to /wp-admin/users.php?page=cmcrm
- > Notice in wp-content/plugins/cmc-role/page/admin.php+68
Undefined index: atts
- > GET request to /wp-admin/users.php?page=cmcrm
- > Notice in wp-content/plugins/cmc-role/include/class-cmc-role-table.php+123
Undefined index: location
- 5 occurences, only the last one shown
- > GET request to /wp-admin/users.php?page=cmcrm
- > Notice in wp-content/plugins/cmc-role/include/class-cmc-role-table.php+80
Undefined variable: result
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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #4 (Settings) image required
cmc-role/cmc-role.php 92% from 13 tests
The primary PHP file in "CMC ROLE" version 0.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin11,972 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 103 | 139 | 4,870 |
SVG | 1 | 0 | 0 | 2,671 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PHP | 8 | 133 | 196 | 748 |
JavaScript | 2 | 14 | 41 | 157 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 44 | |
▷ Static methods | 28 | 63.64% |
▷ Public methods | 34 | 77.27% |
▷ Protected methods | 4 | 9.09% |
▷ Private methods | 6 | 13.64% |
Functions | 12 | |
▷ Named functions | 1 | 8.33% |
▷ Anonymous functions | 11 | 91.67% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/jquery-ui/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
assets/css/jquery-ui/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
assets/css/jquery-ui/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
assets/css/jquery-ui/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/jquery-ui/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |