Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/wp-legal-cases/includes/cases-output-settings.php+7
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.39ms] Passed 4 tests
Server-side resources used by WP Legal Cases
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.80 ▲0.63 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.41 ▼2.39 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.00 ▲1.97 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.04 ▼5.24 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.68 ▲1.43 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Legal Cases
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.20 ▼1.04 | 1.82 ▼0.07 | 44.29 ▼0.31 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▲1.00 | 110.60 ▼5.15 | 42.46 ▼1.67 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.01 | 34.18 ▼6.53 | 33.48 ▼0.78 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.47 ▲0.15 | 633.37 ▼7.74 | 49.75 ▼0.66 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.19 ▼0.02 | 99.16 ▲0.11 | 42.04 ▼4.53 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-legal-cases/includes/register-cases-taxonomies.php
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-legal-cases/wp-legal-cases.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-legal-cases/includes/cases-post-type.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-legal-cases/templates/archive-case.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-legal-cases/includes/cases-admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-legal-cases/includes/cases-output-settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function piklist() in wp-content/plugins/wp-legal-cases/parts/meta-boxes/cases-meta.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-legal-cases/includes/cases-enqueue-styles.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-legal-cases/templates/single-case.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function piklist() in wp-content/plugins/wp-legal-cases/parts/settings/cases-settings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-legal-cases/archive-case.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in wp-legal-cases/assets to your readme.txt
wp-legal-cases/wp-legal-cases.php Passed 13 tests
The principal PHP file in "WP Legal Cases" v. 2.0.2 is loaded by WordPress automatically on each request
101 characters long description:
Designed for law firms using WordPress: Add a custom post type that highlights your important cases.
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
There were no executable files found in this plugin917 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 221 | 199 | 736 |
CSS | 2 | 85 | 162 | 181 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 7 | 53.85% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin