Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/legal-news-headlines/legal-news-headlines.php+350
Function create_function() is deprecated
Server metrics [RAM: ▼1.85MB] [CPU: ▼59.06ms] Passed 4 tests
A check of server-side resources used by Legal News Headlines
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.31 | 5.53 ▼36.29 |
Dashboard /wp-admin | 2.17 ▼1.18 | 7.25 ▼61.02 |
Posts /wp-admin/edit.php | 2.17 ▼1.19 | 5.82 ▼43.67 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.72 | 6.55 ▼95.26 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 5.93 ▼33.54 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_legal_news_headlines |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Legal News Headlines
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.68 ▼0.61 | 1.82 ▲0.15 | 40.80 ▲0.75 |
Dashboard /wp-admin | 2,221 ▲18 | 5.04 ▼0.74 | 98.26 ▼7.15 | 37.64 ▼2.28 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.04 ▲0.05 | 38.40 ▲0.51 | 33.76 ▲0.49 |
Add New Post /wp-admin/post-new.php | 1,545 ▼0 | 23.08 ▼0.11 | 636.80 ▲4.75 | 68.46 ▼25.28 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.18 ▼0.03 | 117.16 ▲4.85 | 46.65 ▼2.16 |
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
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/legal-news-headlines/legal-news-headlines.php+350
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_legal_news_headlines
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/legal-news-headlines/includes/widget.php
- > /wp-content/plugins/legal-news-headlines/includes/admin.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/legal-news-headlines/legal-news-headlines.php on line 10
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/legal-news-headlines/legal-news-headlines.php on line 10
- > PHP Warning
include_once(ABSPATHWPINC/class-simplepie.php): failed to open stream: No such file or directory in wp-content/plugins/legal-news-headlines/legal-news-headlines.php on line 10
- > PHP Warning
include_once(): Failed opening 'ABSPATHWPINC/class-simplepie.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/legal-news-headlines/legal-news-headlines.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/legal-news-headlines/legal-news-headlines.php:14
- > PHP Notice
Undefined variable: widget_title in wp-content/plugins/legal-news-headlines/includes/widget.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 53 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (Full administration/customization all from the widget panel.), #2 (Easily customize the widget and use multiple times on your site to align perfectly to your content. You'll see here that there is no branding on the content outside of your site theme.), #3 (Seamlessly integrate with your existing WordPress theme.), #4 (Another example with preview content turned on.), #5 (An example without post preview content.), #6 (One final example for good measure!)
legal-news-headlines/legal-news-headlines.php Passed 13 tests
This is the main PHP file of "Legal News Headlines" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
111 characters long description:
Widget that dipslays legal news RSS feed titles from Lawyers.com, along with news feeds from the installed site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected512 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 75 | 84 | 310 |
JavaScript | 2 | 28 | 20 | 108 |
PO File | 1 | 20 | 19 | 54 |
CSS | 2 | 15 | 13 | 40 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.32MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-6.png | 19.22KB | 9.64KB | ▼ 49.86% |
screenshot-3.png | 41.07KB | 14.43KB | ▼ 64.86% |
screenshot-4.png | 59.32KB | 24.92KB | ▼ 57.98% |
screenshot-2.png | 47.45KB | 18.32KB | ▼ 61.40% |
screenshot-1.png | 143.15KB | 44.27KB | ▼ 69.07% |