Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.65MB] [CPU: ▼269.47ms] Passed 4 tests
A check of server-side resources used by LegalBlink Policy
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.12 ▲1.40 | 25.97 ▲4.18 |
Dashboard /wp-admin | 4.82 ▲1.76 | 53.33 ▲9.11 |
Posts /wp-admin/edit.php | 4.86 ▲1.76 | 53.82 ▲13.39 |
Add New Post /wp-admin/post-new.php | 7.12 ▲1.69 | 100.95 ▼1,090.00 |
Media Library /wp-admin/upload.php | 4.76 ▲1.75 | 38.43 ▼1.18 |
Privacy Policy /wp-admin/admin.php?page=lbp_tab_privacy_policy | 8.84 | 67.15 |
Cache /wp-admin/admin.php?page=lbp_tab_cache_settings | 8.67 | 60.33 |
GCS Policy /wp-admin/admin.php?page=lbp_tab_gcs_policy | 8.82 | 64.91 |
Advanced Settings /wp-admin/admin.php?page=lbp_tab_advanced_settings | 8.78 | 65.19 |
Banner Cookie /wp-admin/admin.php?page=lbp_tab_banner_cookie | 9.25 | 73.19 |
Cookie Policy /wp-admin/admin.php?page=lbp_tab_cookie_policy | 8.82 | 66.37 |
Server storage [IO: ▲1.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 261 new files
Database: no new tables, 2 new options
New WordPress options |
---|
LegalblinkPolicy_Plugin__version |
LegalblinkPolicy_Plugin__installed |
Browser metrics Passed 4 tests
Checking browser requirements for LegalBlink Policy
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,834 ▲252 | 16.42 ▲0.88 | 19.20 ▲11.55 | 51.54 ▲5.40 |
Dashboard /wp-admin | 2,981 ▲131 | 5.97 ▲0.09 | 133.94 ▼1.27 | 129.31 ▲28.21 |
Posts /wp-admin/edit.php | 2,768 ▲62 | 2.70 ▲0.01 | 61.17 ▼7.08 | 87.76 ▼2.81 |
Add New Post /wp-admin/post-new.php | 1,629 ▼28 | 21.50 ▲2.70 | 273.41 ▼95.87 | 103.86 ▼12.88 |
Media Library /wp-admin/upload.php | 1,772 ▼0 | 5.04 ▲0.02 | 130.36 ▼18.34 | 130.68 ▲9.22 |
Privacy Policy /wp-admin/admin.php?page=lbp_tab_privacy_policy | 1,607 | 2.71 | 59.98 | 128.35 |
Cache /wp-admin/admin.php?page=lbp_tab_cache_settings | 1,289 | 2.79 | 64.99 | 90.65 |
GCS Policy /wp-admin/admin.php?page=lbp_tab_gcs_policy | 1,542 | 2.83 | 65.06 | 121.41 |
Advanced Settings /wp-admin/admin.php?page=lbp_tab_advanced_settings | 1,453 | 2.82 | 61.26 | 120.10 |
Banner Cookie /wp-admin/admin.php?page=lbp_tab_banner_cookie | 3,581 | 4.04 | 105.54 | 207.68 |
Cookie Policy /wp-admin/admin.php?page=lbp_tab_cookie_policy | 1,544 | 2.82 | 61.25 | 131.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 2 options in the database
- LegalblinkPolicy_Plugin__version
- LegalblinkPolicy_Plugin__installed
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 215× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_Input_Base' not found in wp-content/plugins/legalblink-policy/library/apf/factory/_common/form/input/AdminPageFramework_Input_select.php:7
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/legalblink-policy/library/apf/factory/_common/_abstract/_view/AdminPageFramework_TabNavigationBar.php:7
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/legalblink-policy/library/apf/factory/_common/_abstract/_model/AdminPageFramework_Property_Base.php:7
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/legalblink-policy/library/apf/factory/_common/_abstract/_model/AdminPageFramework_Format_Base.php:7
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_Form' not found in wp-content/plugins/legalblink-policy/library/apf/factory/post_type/form/AdminPageFramework_Form_post_type.php:7
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_Form_Utility' not found in wp-content/plugins/legalblink-policy/library/apf/factory/admin_page/_model/delegate/AdminPageFramework_Model__FormSubmission.php:7
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/legalblink-policy/library/apf/factory/_common/_abstract/_controller/AdminPageFramework_Resource_Base.php:7
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_Link_Base' not found in wp-content/plugins/legalblink-policy/library/apf/factory/admin_page/_controller/AdminPageFramework_Link_admin_page.php:7
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_FieldType' not found in wp-content/plugins/legalblink-policy/library/apf/factory/_common/form/field_type/AdminPageFramework_FieldType_textarea.php:7
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_Form_View___Generate_FlatFieldName' not found in wp-content/plugins/legalblink-policy/library/apf/factory/_common/form/_view/generator/field/AdminPageFramework_Form_View___Generate_FlatFieldInputName.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
- Tags: The plugin tags were not defined
legalblink-policy/legalblink-policy.php Passed 13 tests
The main PHP script in "LegalBlink Policy" version 1.0.2 is automatically included on every request by WordPress
41 characters long description:
Install LegalBlink services in your site.
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
Everything looks great! No dangerous files found in this plugin17,773 lines of code in 248 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 237 | 1,118 | 3,079 | 16,991 |
PO File | 1 | 138 | 154 | 386 |
JavaScript | 4 | 65 | 15 | 353 |
CSS | 4 | 6 | 7 | 28 |
JSON | 2 | 0 | 0 | 15 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 7.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 339 | |
▷ Abstract classes | 95 | 28.02% |
▷ Concrete classes | 244 | 71.98% |
▷ Final classes | 2 | 0.82% |
Methods | 1,806 | |
▷ Static methods | 251 | 13.90% |
▷ Public methods | 1,026 | 56.81% |
▷ Protected methods | 302 | 16.72% |
▷ Private methods | 478 | 26.47% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 24 | |
▷ Global constants | 7 | 29.17% |
▷ Class constants | 17 | 70.83% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo_c_menu_24.png | 1.22KB | 1.32KB | 0.00% |
assets/img/logo_c_menu_16.png | 0.59KB | 0.70KB | 0.00% |
assets/img/logo_menu.png | 3.35KB | 0.69KB | ▼ 79.31% |
assets/img/logo_main_128.png | 27.32KB | 10.38KB | ▼ 62.02% |
assets/img/logo_main_96.png | 17.17KB | 6.94KB | ▼ 59.57% |