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
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.92ms] Passed 4 tests
A check of server-side resources used by Legal +
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.04 ▲4.01 |
Dashboard /wp-admin | 3.34 ▼0.00 | 44.75 ▼10.10 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 43.39 ▼0.26 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 81.54 ▼12.15 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 31.73 ▼5.17 |
legal+ /wp-admin/options-general.php?page=legal_plus_settings | 3.28 | 36.34 |
Server storage [IO: ▲0.09MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 10 new options
New WordPress options |
---|
legalplus_page_notice |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
legalplus_COOKIES_TEXT |
widget_theysaidso_widget |
legalplus_page_privacity |
widget_recent-comments |
widget_recent-posts |
legalplus_bottom_bar |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Legal +
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲81 | 14.29 ▼0.06 | 2.50 ▲0.72 | 43.51 ▲2.69 |
Dashboard /wp-admin | 2,199 ▲22 | 5.51 ▼0.15 | 90.59 ▲1.39 | 42.95 ▲5.16 |
Posts /wp-admin/edit.php | 2,104 ▲22 | 2.02 ▲0.00 | 34.02 ▼1.39 | 36.05 ▼2.54 |
Add New Post /wp-admin/post-new.php | 1,531 ▼2 | 22.67 ▲4.53 | 643.93 ▼15.91 | 56.58 ▼13.21 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.27 ▲0.10 | 95.32 ▼17.11 | 43.12 ▼7.96 |
legal+ /wp-admin/options-general.php?page=legal_plus_settings | 1,040 | 2.04 | 22.41 | 29.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 10 options
- legalplus_COOKIES_TEXT
- can_compress_scripts
- legalplus_bottom_bar
- legalplus_page_privacity
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- legalplus_page_notice
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/legal-plus/legalplus.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/legal-plus/legalplus_admin.php:157
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/legal-plus/templates/legalplus_header.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: cookies, legal
legal-plus/legalplus.php 92% from 13 tests
Analyzing the main PHP file in "Legal +" version 1.0
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("legal-plus.php" instead of "legalplus.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin649 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 36 | 15 | 428 |
JavaScript | 1 | 15 | 1 | 132 |
CSS | 2 | 0 | 0 | 89 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 24 | |
▷ Named functions | 24 | 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
There were not PNG files found in your plugin