Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-protect-admin-login/protectadmin.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; WordpressProtectAdmin has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼60.77ms] Passed 4 tests
A check of server-side resources used by Wordpress Protect Admin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 5.78 ▼37.43 |
Dashboard /wp-admin | 2.10 ▼1.25 | 5.88 ▼57.68 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.86 ▼43.94 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.55 ▼104.01 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.12 ▼31.67 |
Protect Admin /wp-admin/options-general.php?page=wordpress-protect-admin | 2.10 | 5.23 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Wordpress Protect Admin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.37 ▲0.09 | 2.40 ▲0.32 | 44.38 ▲1.17 |
Dashboard /wp-admin | 2,199 ▲19 | 5.60 ▼0.07 | 95.96 ▲6.41 | 43.69 ▲7.53 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.02 | 36.13 ▼8.19 | 34.27 ▼3.48 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.23 ▲5.54 | 696.53 ▲64.43 | 52.96 ▲3.14 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.15 ▼0.05 | 111.37 ▲0.36 | 45.20 ▲1.54 |
Protect Admin /wp-admin/options-general.php?page=wordpress-protect-admin | 921 | 2.01 | 23.28 | 28.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wp-protect-admin-login/protectadmin.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; WordpressProtectAdmin has a deprecated constructor
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wordpress-protect-admin
- > Deprecated in wp-content/plugins/wp-protect-admin-login/protectadmin.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; WordpressProtectAdmin has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=wordpress-protect-admin
- > Notice in wp-content/plugins/wp-protect-admin-login/settings.php+41
Undefined variable: msg
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-protect-admin-login/protectadmin.php:104
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-protect-admin-login/settings.php:2
- > PHP Fatal error
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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-protect-admin-login ===
)
wp-protect-admin-login/protectadmin.php 92% from 13 tests
The entry point to "Wordpress Protect Admin" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-protect-admin-login.php" instead of "protectadmin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected168 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 29 | 10 | 168 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 4.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin