10% widget-of-the-future

Code Review | Future Widget

WordPress plugin Future Widget scored 10% from 54 tests.

About plugin

  • Plugin page: widget-of-the-future
  • Plugin version: 0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.6.1
  • WordPress version: 6.3.1
  • First release: May 6, 2013
  • Latest release: Sep 20, 2013
  • Number of updates: 12
  • Update frequency: every 11.5 days
  • Top authors: ShinichiN (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 936 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/widget-of-the-future/future-posts-widget.php+13
    Function create_function() is deprecated

Server metrics [RAM: ▼1.92MB] [CPU: ▼53.19ms] Passed 4 tests

A check of server-side resources used by Future Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.68 ▼35.38
Dashboard /wp-admin2.08 ▼1.2210.28 ▼36.09
Posts /wp-admin/edit.php2.08 ▼1.277.01 ▼41.73
Add New Post /wp-admin/post-new.php2.08 ▼3.806.54 ▼99.57
Media Library /wp-admin/upload.php2.08 ▼1.155.17 ▼28.27

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_widgetfutureposts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Future Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.42 ▼1.251.82 ▼0.0746.82 ▲2.95
Dashboard /wp-admin2,206 ▲184.85 ▼0.09107.01 ▲5.9640.89 ▼4.17
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0539.34 ▼2.3335.26 ▲1.32
Add New Post /wp-admin/post-new.php1,514 ▼017.56 ▼0.12664.61 ▼12.6061.66 ▲10.68
Media Library /wp-admin/upload.php1,391 ▲64.21 ▼0.1493.53 ▼12.3141.19 ▼4.21

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/widget-of-the-future/future-posts-widget.php+13
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_widgetfutureposts

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widget-of-the-future/future-posts-widget.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: widget, scheduled, future, schedule

widget-of-the-future/future-posts-widget.php 92% from 13 tests

The main PHP script in "Future Widget" version 0.7 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("widget-of-the-future.php" instead of "future-posts-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin87 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1201087

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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