Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin cannot be installed
- > Parse error in wp-content/plugins/staging-users-control/staging-users-control.php+41
syntax error, unexpected '}', expecting end of file
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.23ms] Passed 4 tests
This is a short check of server-side resources used by Staging Users Control
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.79 ▲0.24 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.48 ▼10.58 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.21 ▲2.17 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.85 ▼12.76 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.70 ▲2.53 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Staging Users Control
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.25 ▼0.10 | 1.85 ▲0.31 | 43.91 ▲2.71 |
Dashboard /wp-admin | 2,198 ▲18 | 5.61 ▼0.04 | 82.37 ▼2.28 | 36.92 ▼6.41 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.01 ▲0.02 | 34.70 ▼4.37 | 30.74 ▼14.17 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.07 ▼0.66 | 648.85 ▼27.70 | 59.69 ▲6.51 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.01 | 94.57 ▼7.21 | 41.46 ▼2.83 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
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
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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Parse error
syntax error, unexpected '}', expecting end of file in wp-content/plugins/staging-users-control/staging-users-control.php on line 41
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% 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
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== staging-users-control ===
) - Screenshots: These screenshots do not have images: #1 (This is the plugin settings page, under Settings > Staging Users Control.), #2 (This is the users profile page, showing the new checkbox to allow users to login into the LIVE env.), #3 (You can show a message on the live site for users to notice they are logging on the LIVE site.)
- Donate link: Invalid URI found ("None.")
staging-users-control/staging-users-control.php Passed 13 tests
This is the main PHP file of "Staging Users Control" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
139 characters long description:
A plugin to prevent certain users from logging into the back-end in the LIVE environment. You can let your users edit staging but not live.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin280 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 26 | 42 | 280 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 30.04KB | 16.20KB | ▼ 46.07% |
screenshot-3.png | 16.96KB | 7.21KB | ▼ 57.47% |
screenshot-2.png | 8.61KB | 4.76KB | ▼ 44.74% |