83% genesis-featured-widget-amplified

Code Review | Genesis Featured Widget Amplified

WordPress plugin Genesis Featured Widget Amplified scored83%from 54 tests.

About plugin

  • Plugin page: genesis-featured-...
  • Plugin version: 0.9.2
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 13, 2011
  • Latest release: Dec 22, 2017
  • Number of updates: 59
  • Update frequency: every 43.1 days
  • Top authors: Nick_theGeek (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

5,000+ active /87,782 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.72ms] Passed 4 tests

This is a short check of server-side resources used by Genesis Featured Widget Amplified
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.09 ▼7.99
Dashboard /wp-admin3.31 ▲0.0143.73 ▼6.72
Posts /wp-admin/edit.php3.36 ▲0.0046.43 ▲0.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.70 ▼4.33
Media Library /wp-admin/upload.php3.23 ▲0.0035.34 ▲2.23

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Genesis Featured Widget Amplified
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.111.70 ▼0.1541.08 ▼7.66
Dashboard /wp-admin2,206 ▲184.87 ▼0.03100.41 ▼15.2136.27 ▼6.71
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0033.31 ▼5.8434.37 ▼1.89
Add New Post /wp-admin/post-new.php1,533 ▲1023.33 ▲0.12682.20 ▲5.4653.67 ▲2.82
Media Library /wp-admin/upload.php1,385 ▼64.22 ▼0.02106.57 ▲8.1746.39 ▲2.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/genesis-featured-widget-amplified/inc/classes/class-genesis-featured-widget-amplified.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/genesis-featured-widget-amplified/plugin.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: studiopress, genesis, pagination, custom post type, genesiswp...

genesis-featured-widget-amplified/plugin.php 77% from 13 tests

The main PHP script in "Genesis Featured Widget Amplified" version 0.9.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 300 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("genesis-featured-widget-amplified.php" instead of "plugin.php")

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
Success! There were no dangerous files found in this plugin1,236 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP31563371,062
PO File177165174

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity57.00
▷ Minimum class complexity57.00
▷ Maximum class complexity57.00
Average method complexity15.00
▷ Minimum method complexity1.00
▷ Maximum method complexity36.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%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin