Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.71ms] Passed 4 tests
Server-side resources used by Proxy Hacking Protection
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 47.49 ▲7.16 |
Dashboard /wp-admin | 3.34 ▲0.03 | 53.73 ▲1.83 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.94 ▼5.83 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.89 ▼3.38 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.45 ▼3.44 |
Proxy Hacking Protection /wp-admin/options-general.php?page=phprot_setting_menu | 3.20 | 32.76 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Proxy Hacking Protection
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.57 ▲0.22 | 2.00 ▲0.42 | 38.29 ▼5.40 |
Dashboard /wp-admin | 2,199 ▲19 | 5.65 ▲0.06 | 87.86 ▼4.15 | 36.57 ▼3.87 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.03 | 36.66 ▼0.49 | 36.22 ▼3.37 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.05 ▲1.99 | 638.87 ▼65.29 | 60.86 ▲2.41 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.27 ▲0.06 | 109.15 ▼2.09 | 47.62 ▼3.44 |
Proxy Hacking Protection /wp-admin/options-general.php?page=phprot_setting_menu | 817 | 2.02 | 23.88 | 61.44 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=phprot_setting_menu
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=phprot_setting_menu
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/ph-protection/ph-prot-main.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ph-protection/admin-settings.php:163
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/ph-protection/ph-protection.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: hacking, proxy, protection, hack, google
ph-protection/ph-protection.php Passed 13 tests
The main PHP script in "Proxy Hacking Protection" version 0.0.1 is automatically included on every request by WordPress
43 characters long description:
Proxy Hacking Protection (WordPress Plugin)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin144 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 32 | 91 | 144 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 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 | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected