Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.55MB] [CPU: ▲1.04ms] Passed 4 tests
Server-side resources used by Protect Admin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.61 | 45.61 ▲5.64 |
Dashboard /wp-admin | 3.92 ▲0.61 | 50.83 ▲1.21 |
Posts /wp-admin/edit.php | 3.97 ▲0.61 | 53.47 ▲5.76 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 92.65 ▼8.45 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 47.41 ▲14.37 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 4.04 | 35.52 |
Server storage [IO: ▲3.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 190 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_debug_mode |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
thp_paa_options |
fs_accounts |
theysaidso_admin_options |
fs_active_plugins |
Browser metrics Passed 4 tests
An overview of browser requirements for Protect Admin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲56 | 14.34 ▲0.06 | 1.68 ▼0.15 | 28.51 ▼15.77 |
Dashboard /wp-admin | 2,211 ▲37 | 5.52 ▼0.14 | 92.00 ▼7.06 | 80.38 ▲33.29 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 1.99 ▲0.03 | 38.24 ▼0.79 | 35.49 ▼2.98 |
Add New Post /wp-admin/post-new.php | 1,695 ▲169 | 22.46 ▼0.64 | 714.28 ▲36.09 | 48.35 ▼8.69 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.07 ▼0.17 | 118.73 ▲10.09 | 55.16 ▲9.29 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,080 | 1.81 | 25.00 | 27.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/protect-admin-account/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 10 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- thp_paa_options
- fs_active_plugins
- fs_debug_mode
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- fs_accounts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: prevent admin deletion, user account, admin account, prevent user edit, protect...
protect-admin-account/index.php 92% from 13 tests
The entry point to "Protect Admin" version 2.0.5 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("protect-admin-account.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin34,206 lines of code in 141 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 123 | 8,185 | 17,234 | 33,769 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 3 | 34 | 59 | 194 |
XML | 1 | 3 | 0 | 16 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 93.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,259 | |
▷ Static methods | 198 | 15.73% |
▷ Public methods | 869 | 69.02% |
▷ Protected methods | 17 | 1.35% |
▷ Private methods | 373 | 29.63% |
Functions | 126 | |
▷ Named functions | 125 | 99.21% |
▷ Anonymous functions | 1 | 0.79% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.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
5 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 |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/img/protectadmin-icon.png | 2.03KB | 0.69KB | ▼ 66.14% |
freemius/assets/img/protect-admin-account.png | 3.12KB | 2.85KB | ▼ 8.43% |
freemius/assets/img/protect-admin-pro.png | 3.15KB | 2.85KB | ▼ 9.48% |