10% extended-featured-content-widget

Code Review | Extended Featured Widget

WordPress plugin Extended Featured Widget scored 10% from 54 tests.

About plugin

  • Plugin page: extended-featured...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Sep 10, 2014
  • Latest release: Oct 28, 2015
  • Number of updates: 10
  • Update frequency: every 41.3 days
  • Top authors: chinmoy (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 7,249 total downloads

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/extended-featured-content-widget/featured-content-widget.php+11
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.26ms] Passed 4 tests

This is a short check of server-side resources used by Extended Featured Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.35 ▼33.06
Dashboard /wp-admin2.05 ▼1.267.30 ▼42.07
Posts /wp-admin/edit.php2.05 ▼1.316.66 ▼42.43
Add New Post /wp-admin/post-new.php2.05 ▼3.846.50 ▼91.48
Media Library /wp-admin/upload.php2.05 ▼1.186.53 ▼27.64

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_extended-featured-widget
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Extended Featured Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.16 ▼1.131.92 ▲0.2640.75 ▲0.91
Dashboard /wp-admin2,206 ▲145.80 ▲0.9396.34 ▼24.9341.32 ▲0.51
Posts /wp-admin/edit.php2,095 ▲62.03 ▲0.0239.18 ▼2.0836.35 ▼0.14
Add New Post /wp-admin/post-new.php1,536 ▼623.17 ▲4.78592.80 ▼37.6957.63 ▼8.48
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.0196.99 ▲2.4641.15 ▲0.14

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
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/extended-featured-content-widget/featured-content-widget.php+11
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_extended-featured-widget
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/extended-featured-content-widget/post-meta-shortcodes.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/extended-featured-content-widget/extended-featured-widget.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/extended-featured-content-widget/featured-content-widget.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === extended-featured-content-widget === )
The official readme.txt might help

extended-featured-content-widget/extended-featured-widget.php 77% from 13 tests

The principal PHP file in "Extended Featured Widget" v. 0.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("extended-featured-content-widget.php" instead of "extended-featured-widget.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Please don't use more than 140 characters for the plugin description (currently 262 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin589 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4146256589

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity10.00
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin