Benchmarks
Plugin footprint 83% 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.11MB] [CPU: ▲2.22ms] Passed 4 tests
Analyzing server-side resources used by Protect WP Admin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 45.26 ▲5.40 |
Dashboard /wp-admin | 3.41 ▲0.11 | 49.86 ▼1.01 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 56.02 ▲4.18 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 98.30 ▲0.30 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 41.33 ▲6.28 |
Protect WP-Admin /wp-admin/options-general.php?page=pwa-settings | 3.31 | 41.01 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Protect WP Admin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.25 ▼1.11 | 1.68 ▼0.16 | 39.60 ▼6.34 |
Dashboard /wp-admin | 2,224 ▲33 | 5.87 ▼0.04 | 105.58 ▲1.73 | 46.67 ▲5.65 |
Posts /wp-admin/edit.php | 2,110 ▲24 | 2.01 ▼0.01 | 38.13 ▼0.05 | 35.50 ▲2.45 |
Add New Post /wp-admin/post-new.php | 1,553 ▲24 | 18.65 ▲0.11 | 610.26 ▼30.97 | 56.47 ▼1.51 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.14 ▼0.06 | 95.91 ▼7.51 | 44.86 ▼0.38 |
Protect WP-Admin /wp-admin/options-general.php?page=pwa-settings | 1,681 | 10.36 | 329.96 | 40.19 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots need descriptions #6, #7, #8 in protect-wp-admin/assets to your readme.txt
protect-wp-admin/protect-wp-admin.php Passed 13 tests
The entry point to "Protect WP Admin" version 4.0 is a PHP file that has certain tags in its header comment area
87 characters long description:
Give extra protection to your site admin and make secure your website against hackers!!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin584 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 83 | 92 | 497 |
JavaScript | 2 | 14 | 6 | 86 |
CSS | 1 | 0 | 4 | 1 |
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.59 |
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 | 26 | |
▷ Named functions | 26 | 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
No PNG files were detected