Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.49MB] [CPU: ▼48.61ms] Passed 4 tests
Analyzing server-side resources used by Legull
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 10.98 ▼31.59 |
Dashboard /wp-admin | 3.53 ▲0.18 | 13.56 ▼48.06 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 13.04 ▼38.73 |
Add New Post /wp-admin/post-new.php | 3.53 ▼2.35 | 14.47 ▼76.06 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 14.19 ▼21.01 |
Publish /wp-admin/admin.php?page=legull_publish | 3.36 | 14.47 |
Add-ons /wp-admin/admin.php?page=legull_addons | 3.36 | 12.59 |
Getting Started /wp-admin/admin.php?page=legull_dashboard | 3.36 | 12.72 |
Terms /wp-admin/admin.php?page=legull_terms | 3.36 | 15.49 |
Server storage [IO: ▲1.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 186 new files
Database: no new tables, 8 new options
New WordPress options |
---|
Legull_activation_status |
widget_recent-posts |
theysaidso_admin_options |
Legull_flush_rewrites |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Legull
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲229 | 13.99 ▼0.63 | 6.12 ▲4.32 | 41.88 ▼11.52 |
Dashboard /wp-admin | 2,289 ▲86 | 5.25 ▼0.63 | 101.42 ▼9.38 | 38.16 ▼5.41 |
Posts /wp-admin/edit.php | 2,174 ▲77 | 2.37 ▲0.31 | 37.39 ▲0.07 | 31.24 ▲1.87 |
Add New Post /wp-admin/post-new.php | 1,572 ▲46 | 23.15 ▲5.64 | 613.96 ▼35.90 | 35.06 ▼44.71 |
Media Library /wp-admin/upload.php | 1,471 ▲71 | 4.67 ▲0.43 | 106.84 ▼2.36 | 46.50 ▼4.36 |
Publish /wp-admin/admin.php?page=legull_publish | 1,151 | 2.66 | 50.67 | 56.13 |
Add-ons /wp-admin/admin.php?page=legull_addons | 1,409 | 2.41 | 57.18 | 58.68 |
Getting Started /wp-admin/admin.php?page=legull_dashboard | 2,517 | 2.98 | 64.63 | 49.89 |
Terms /wp-admin/admin.php?page=legull_terms | 994 | 2.13 | 29.86 | 21.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/legull/lib/legull-admin-page-framework/factory/AdminPageFramework_Factory/utility/AdminPageFramework_Utility/AdminPageFramework_Utility_URL.php+15
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- Legull_flush_rewrites
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=legull_terms
- > Deprecated in wp-content/plugins/legull/lib/legull-admin-page-framework/factory/AdminPageFramework_Factory/utility/AdminPageFramework_Utility/AdminPageFramework_Utility_URL.php+15
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
SRP 0% from 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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/legull/template/metabox.php
- 142× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Legull_AdminPageFramework_Script_Base' not found in wp-content/plugins/legull/lib/legull-admin-page-framework/factory/AdminPageFramework_Factory/view/AdminPageFramework_Script/AdminPageFramework_Script_CollapsibleSection.php:8
- > PHP Fatal error
Uncaught Error: Class 'Legull_AdminPageFramework_View' not found in wp-content/plugins/legull/lib/legull-admin-page-framework/factory/AdminPageFramework/AdminPageFramework_Controller.php:8
- > PHP Fatal error
Uncaught Error: Class 'Legull_AdminPageFramework_Page_View' not found in wp-content/plugins/legull/lib/legull-admin-page-framework/factory/AdminPageFramework/AdminPageFramework_Page_Controller.php:8
- > PHP Fatal error
Uncaught Error: Class 'Legull_AdminPageFramework_WPUtility_Hook' not found in wp-content/plugins/legull/lib/legull-admin-page-framework/factory/AdminPageFramework_Factory/utility/AdminPageFramework_WPUtility/AdminPageFramework_WPUtility_File.php:8
- > PHP Fatal error
Uncaught Error: Class 'Legull_AdminPageFramework_FieldType_select' not found in wp-content/plugins/legull/lib/legull-admin-page-framework/factory/AdminPageFramework_Factory/view/AdminPageFramework_FieldType/AdminPageFramework_FieldType_size.php:8
- > PHP Fatal error
Uncaught Error: Class 'Legull_AdminPageFramework_WPUtility' not found in wp-content/plugins/legull/lib/legull-admin-page-framework/factory/AdminPageFramework/model/AdminPageFramework_FormEmail.php:8
- > PHP Fatal error
Uncaught Error: Class 'Legull_AdminPageFramework_FieldType_text' not found in wp-content/plugins/legull/lib/legull-admin-page-framework/factory/AdminPageFramework_Factory/view/AdminPageFramework_FieldType/AdminPageFramework_FieldType_file.php:8
- > PHP Fatal error
Uncaught Error: Class 'Legull_AdminPageFramework_FieldType' not found in wp-content/plugins/legull/lib/legull-admin-page-framework/factory/AdminPageFramework_Factory/view/AdminPageFramework_FieldType/AdminPageFramework_FieldType_color.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/legull/template/tracking.php:5
- > PHP Fatal error
Uncaught Error: Class 'Legull_AdminPageFramework_Utility_URL' not found in wp-content/plugins/legull/lib/legull-admin-page-framework/factory/AdminPageFramework_Factory/utility/AdminPageFramework_Utility/AdminPageFramework_Utility_File.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
Please fix the following attributes:
- Tags: There are too many tags (19 tag instead of maximum 10)
legull/legull.php Passed 13 tests
The main PHP file in "Legull" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
139 characters long description:
Legull is Terms of Service and Privacy Policy for your WordPress site, generated by simple questions and answers, editable and update-able.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin20,362 lines of code in 175 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 167 | 1,360 | 4,242 | 20,094 |
Markdown | 2 | 95 | 0 | 144 |
JavaScript | 4 | 2 | 4 | 64 |
CSS | 1 | 0 | 0 | 59 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 13.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 157.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 328 | |
▷ Abstract classes | 136 | 41.46% |
▷ Concrete classes | 192 | 58.54% |
▷ Final classes | 5 | 2.60% |
Methods | 1,960 | |
▷ Static methods | 300 | 15.31% |
▷ Public methods | 1,076 | 54.90% |
▷ Protected methods | 469 | 23.93% |
▷ Private methods | 415 | 21.17% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 3 | 11.11% |
▷ Class constants | 24 | 88.89% |
▷ Public constants | 24 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/icon-48.png | 1.32KB | 1.06KB | ▼ 19.53% |
asset/icon-32.png | 0.90KB | 0.79KB | ▼ 11.87% |
asset/icon-16.png | 0.48KB | 0.44KB | ▼ 6.97% |
asset/icon-128.png | 2.96KB | 2.29KB | ▼ 22.66% |
asset/icon-64.png | 1.84KB | 1.39KB | ▼ 24.28% |