10% advanced-featured-page-widget

Code Review | Advanced Featured Page Widget

WordPress plugin Advanced Featured Page Widget scored10%from 54 tests.

About plugin

  • Plugin page: advanced-featured...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 23, 2013
  • Latest release: Apr 25, 2013
  • Number of updates: 9
  • Update frequency: every 0.4 days
  • Top authors: jmurimi (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

700+ active /14,283 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/advanced-featured-page-widget/advanced-featured-page-widget.php+349
    Function create_function() is deprecated

Server metrics [RAM: ▼1.83MB] [CPU: ▼52.77ms] Passed 4 tests

A check of server-side resources used by Advanced Featured Page Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.305.18 ▼35.72
Dashboard /wp-admin2.18 ▼1.138.36 ▼47.03
Posts /wp-admin/edit.php2.18 ▼1.187.00 ▼41.21
Add New Post /wp-admin/post-new.php2.18 ▼3.717.88 ▼87.11
Media Library /wp-admin/upload.php2.18 ▼1.057.32 ▼26.02

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_advanced-featured-page-widget
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Featured Page Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.27 ▼1.121.74 ▼0.3743.83 ▲2.53
Dashboard /wp-admin2,203 ▲155.83 ▲0.9599.32 ▼3.6838.89 ▼10.14
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0334.43 ▼4.4531.57 ▼4.19
Add New Post /wp-admin/post-new.php1,520 ▲623.02 ▲5.34611.88 ▼36.3254.41 ▲6.32
Media Library /wp-admin/upload.php1,391 ▲64.16 ▼0.0695.99 ▼3.0142.99 ▼0.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/advanced-featured-page-widget/advanced-featured-page-widget.php+349
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_advanced-featured-page-widget

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
The smoke test was a success, however most plugin functionality was not tested

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-featured-page-widget/advanced-featured-page-widget.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: featured post widget, featured page widget, featured post, featured page, widget...

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

The main PHP file in "Advanced Featured Page Widget" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
50 characters long description:
Add a featured page in the sidebar using a widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin221 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16861221

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity9.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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
2 compressed PNG files occupy 0.05MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png42.79KB41.79KB▼ 2.34%
screenshot-1.png5.60KB5.27KB▼ 5.88%