Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/family-law-express-news-widget/family-law-express-headlines.php+328
Function create_function() is deprecated
Server metrics [RAM: ▼1.84MB] [CPU: ▼53.93ms] Passed 4 tests
An overview of server-side resources used by Family Law Express News
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 6.13 ▼34.38 |
Dashboard /wp-admin | 2.16 ▼1.14 | 5.67 ▼39.83 |
Posts /wp-admin/edit.php | 2.16 ▼1.19 | 7.04 ▼41.94 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.72 | 6.36 ▼99.55 |
Media Library /wp-admin/upload.php | 2.16 ▼1.06 | 5.60 ▼30.24 |
Server storage [IO: ▲1.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_family_law_express_headlines |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Family Law Express News
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.29 ▼1.13 | 1.67 ▼0.14 | 42.68 ▼0.28 |
Dashboard /wp-admin | 2,209 ▲18 | 5.86 ▲0.98 | 100.81 ▼9.11 | 41.48 ▼0.77 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.01 | 36.55 ▼7.54 | 35.42 ▼2.89 |
Add New Post /wp-admin/post-new.php | 1,520 ▲1 | 23.20 ▼0.16 | 686.38 ▼7.47 | 55.88 ▲8.49 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.20 ▼0.04 | 107.20 ▲5.07 | 46.95 ▼0.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/family-law-express-news-widget/family-law-express-headlines.php+328
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_family_law_express_headlines
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/family-law-express-news-widget/includes/admin.php
- > /wp-content/plugins/family-law-express-news-widget/includes/widget.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/family-law-express-news-widget/family-law-express-headlines.php:14
- > PHP Notice
Undefined variable: widget_title in wp-content/plugins/family-law-express-news-widget/includes/widget.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 27 tag instead of maximum 10
family-law-express-news-widget/family-law-express-headlines.php 92% from 13 tests
The main PHP script in "Family Law Express News" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("family-law-express-news-widget.php" instead of "family-law-express-headlines.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected483 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 74 | 84 | 280 |
JavaScript | 2 | 28 | 20 | 108 |
PO File | 1 | 19 | 19 | 55 |
CSS | 2 | 15 | 13 | 40 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 5.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 54.34KB | 20.58KB | ▼ 62.13% |
screenshot-4.png | 14.89KB | 6.00KB | ▼ 59.74% |
screenshot-3.png | 13.08KB | 5.34KB | ▼ 59.22% |
screenshot-2.png | 11.97KB | 5.08KB | ▼ 57.53% |
includes/images/250x150v3.png | 10.27KB | 5.59KB | ▼ 45.54% |