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
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/ev-widget-post/ev-widget-post.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; EVWidgetPost has a deprecated constructor
Server metrics [RAM: ▼1.74MB] [CPU: ▼194.01ms] Passed 4 tests
An overview of server-side resources used by EV Widget Post
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.89 ▼0.83 | 10.29 ▼12.62 |
Dashboard /wp-admin | 1.91 ▼1.15 | 5.50 ▼38.62 |
Posts /wp-admin/edit.php | 1.91 ▼1.20 | 5.69 ▼40.00 |
Add New Post /wp-admin/post-new.php | 1.91 ▼3.53 | 6.62 ▼665.15 |
Media Library /wp-admin/upload.php | 1.91 ▼1.10 | 5.21 ▼32.27 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_evwidgetpost |
Browser metrics Passed 4 tests
A check of browser resources used by EV Widget Post
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,681 ▲85 | 15.92 ▲0.43 | 7.82 ▼3.03 | 53.37 ▲1.10 |
Dashboard /wp-admin | 2,991 ▲57 | 6.08 ▲0.11 | 145.54 ▼9.87 | 118.34 ▼3.84 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.68 ▼0.02 | 71.39 ▼1.13 | 90.91 ▼7.42 |
Add New Post /wp-admin/post-new.php | 1,685 ▲2 | 18.49 ▼0.25 | 373.26 ▼14.91 | 112.19 ▼5.09 |
Media Library /wp-admin/upload.php | 1,805 ▼5 | 5.03 ▲0.02 | 168.44 ▲10.21 | 131.67 ▼8.61 |
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
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/ev-widget-post/ev-widget-post.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; EVWidgetPost has a deprecated constructor
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_evwidgetpost
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ev-widget-post/ev-widget-post.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== ev-widget-post ===
)
ev-widget-post/ev-widget-post.php Passed 13 tests
Analyzing the main PHP file in "EV Widget Post" version 0.6
132 characters long description:
Widget for show post from a especific category. You can filter how to display it, with thumbail, excerpt and order by date or random
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
There were no executable files found in this plugin278 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 54 | 13 | 211 |
PO File | 1 | 24 | 32 | 61 |
JavaScript | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 47.00 |
▷ Minimum class complexity | 47.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 12.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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
There are no PNG files in this plugin