Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.05ms] Passed 4 tests
A check of server-side resources used by iPermisson
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 39.72 ▼0.78 |
Dashboard /wp-admin | 3.25 ▼0.05 | 42.03 ▼8.89 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.51 ▲1.46 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.68 ▼11.99 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.29 ▲3.12 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
ipermission_dashboard_widgets |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for iPermisson
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,908 ▼853 | 13.97 ▼0.41 | 1.85 ▲0.25 | 42.84 ▲0.71 |
Dashboard /wp-admin | 1,313 ▼867 | 5.15 ▼0.52 | 77.31 ▼11.70 | 65.90 ▲21.41 |
Posts /wp-admin/edit.php | 2,115 ▲12 | 1.98 ▼0.01 | 38.42 ▼0.75 | 34.01 ▼2.65 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.60 ▲0.55 | 748.23 ▲38.01 | 53.09 ▼8.61 |
Media Library /wp-admin/upload.php | 1,409 ▲15 | 4.21 ▲0.03 | 98.74 ▼14.76 | 75.01 ▲25.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ipermission/ipermission.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ipermission/ipermission/ipermission.php:28
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Screenshot #1 (iPermisson) image not found
ipermission/ipermission.php Passed 13 tests
This is the main PHP file of "iPermisson" version 3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
104 characters long description:
iPermission set Rule for your admin dashboard. Manage Or Hide widgets, Options, Plugins, and Admin Menu.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin128 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 22 | 68 | 128 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.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
4 PNG files occupy 0.21MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 108.62KB | 30.13KB | ▼ 72.26% |
ipermission/screenshot-1.png | 108.62KB | 30.13KB | ▼ 72.26% |
ipermission/images/ipermission.png | 1.04KB | 1.18KB | 0.00% |
images/ipermission.png | 1.04KB | 1.18KB | 0.00% |