84% a-featured-page-widget

Code Review | A Featured Page Widget

WordPress plugin A Featured Page Widget scored 84% from 54 tests.

About plugin

  • Plugin page: a-featured-page-w...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 5.9.2
  • First release: Jun 6, 2013
  • Latest release: Oct 30, 2015
  • Number of updates: 16
  • Update frequency: every 54.8 days
  • Top authors: eduardozulian (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 5,245 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼297.44ms] Passed 4 tests

Server-side resources used by A Featured Page Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.0857.74 ▲7.12
Dashboard /wp-admin3.48 ▲0.0434.41 ▲2.24
Posts /wp-admin/edit.php3.72 ▲0.0438.60 ▼2.18
Add New Post /wp-admin/post-new.php6.95 ▼0.0594.48 ▼1,190.41
Media Library /wp-admin/upload.php3.37 ▲0.0426.08 ▲0.61

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for A Featured Page Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,765 ▲1015.92 ▲0.245.70 ▼0.752.19 ▼0.63
Dashboard /wp-admin2,895 ▲376.16 ▼0.06115.19 ▼22.00154.61 ▼7.15
Posts /wp-admin/edit.php2,657 ▼313.25 ▲0.0164.55 ▲1.99142.27 ▼2.35
Add New Post /wp-admin/post-new.php1,661 ▼5016.06 ▼5.19408.12 ▼28.42150.46 ▼3.73
Media Library /wp-admin/upload.php1,695 ▼35.49 ▼0.01137.42 ▲0.83187.21 ▲2.31

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_a_featured_page_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/a-featured-page-widget/a-featured-page-widget.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: widget, featured page, sidebar, pages, page widget

a-featured-page-widget/a-featured-page-widget.php Passed 13 tests

Analyzing the main PHP file in "A Featured Page Widget" version 1.3
58 characters long description:
Feature a page and display its excerpt and post thumbnail.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin247 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File1141238

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected