Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.61ms] Passed 4 tests
A check of server-side resources used by SV Press Permit Converter Member Groups to Roles
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.08 ▼3.69 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.44 ▼8.01 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 47.72 ▼2.70 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.29 ▼12.05 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.82 ▲3.26 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for SV Press Permit Converter Member Groups to Roles
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 13.33 ▼0.89 | 1.81 ▲0.11 | 40.72 ▼2.21 |
Dashboard /wp-admin | 2,224 ▲36 | 5.86 ▼0.04 | 103.11 ▲0.32 | 80.42 ▲40.70 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 1.98 ▼0.03 | 38.03 ▲1.33 | 35.18 ▲1.21 |
Add New Post /wp-admin/post-new.php | 1,541 ▲22 | 18.44 ▼4.72 | 671.46 ▲21.46 | 59.24 ▲3.68 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.22 ▲0.01 | 105.61 ▲5.69 | 44.30 ▼1.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/sv-press-permit-converter-member-groups-to-roles/sv_ppcmgtr.php:44
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/sv-press-permit-converter-member-groups-to-roles/sv_ppcmgtr.php on line 44
- > PHP Fatal error
Uncaught Error: Class 'sv_ppcmgtr' not found in wp-content/plugins/sv-press-permit-converter-member-groups-to-roles/lib/modules/hooks.php:10
- > PHP Fatal error
Uncaught Error: Class 'sv_ppcmgtr' not found in wp-content/plugins/sv-press-permit-converter-member-groups-to-roles/lib/modules/settings.php:10
- > PHP Fatal error
Uncaught Error: Class 'sv_ppcmgtr' not found in wp-content/plugins/sv-press-permit-converter-member-groups-to-roles/lib/modules/ajax.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sv-press-permit-converter-member-groups-to-roles/lib/assets/tpl/backend.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Donate link: Please fix this invalid URI: ""
sv-press-permit-converter-member-groups-to-roles/sv_ppcmgtr.php 85% from 13 tests
The entry point to "SV Press Permit Converter Member Groups to Roles" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sv-press-permit-converter-member-groups-to-roles.php" instead of "sv_ppcmgtr.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected487 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 19 | 147 | 266 |
CSS | 1 | 0 | 0 | 111 |
PO File | 1 | 22 | 23 | 72 |
JavaScript | 1 | 11 | 3 | 38 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/assets/img/logo_icon.png | 1.34KB | 0.76KB | ▼ 43.44% |
lib/assets/img/logo.png | 39.36KB | 19.37KB | ▼ 50.80% |