10% ev-widget-post

Code Review | EV Widget Post

WordPress plugin EV Widget Post scored 10% from 54 tests.

About plugin

  • Plugin page: ev-widget-post
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.4.2
  • WordPress version: 5.8.1
  • First release: Jan 21, 2011
  • Latest release: Apr 4, 2016
  • Number of updates: 21
  • Update frequency: every 90.5 days
  • Top authors: eveevans (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active / 13,740 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /1.89 ▼0.8310.29 ▼12.62
Dashboard /wp-admin1.91 ▼1.155.50 ▼38.62
Posts /wp-admin/edit.php1.91 ▼1.205.69 ▼40.00
Add New Post /wp-admin/post-new.php1.91 ▼3.536.62 ▼665.15
Media Library /wp-admin/upload.php1.91 ▼1.105.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

Browser metrics Passed 4 tests

A check of browser resources used by EV Widget Post
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,681 ▲8515.92 ▲0.437.82 ▼3.0353.37 ▲1.10
Dashboard /wp-admin2,991 ▲576.08 ▲0.11145.54 ▼9.87118.34 ▼3.84
Posts /wp-admin/edit.php2,741 ▲22.68 ▼0.0271.39 ▼1.1390.91 ▼7.42
Add New Post /wp-admin/post-new.php1,685 ▲218.49 ▼0.25373.26 ▼14.91112.19 ▼5.09
Media Library /wp-admin/upload.php1,805 ▼55.03 ▲0.02168.44 ▲10.21131.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

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


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 === )
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PO File1243261

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 code0.34
Average class complexity47.00
▷ Minimum class complexity47.00
▷ Maximum class complexity47.00
Average method complexity12.50
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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