10% future

Code Review | Future

WordPress plugin Future scored 10% from 54 tests.

About plugin

  • Plugin page: future
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-4.0
  • WordPress version: 6.3.1
  • First release: Apr 23, 2013
  • Latest release: Oct 18, 2014
  • Number of updates: 27
  • Update frequency: every 21.4 days
  • Top authors: msudvarg (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

400+ active / 9,635 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
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/future/future.php+391
    Undefined index: future

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

This is a short check of server-side resources used by Future
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.40 ▼36.97
Dashboard /wp-admin2.05 ▼1.265.22 ▼39.96
Posts /wp-admin/edit.php2.05 ▼1.316.59 ▼36.17
Add New Post /wp-admin/post-new.php2.05 ▼3.845.04 ▼88.83
Media Library /wp-admin/upload.php2.05 ▼1.186.15 ▼29.34

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Future
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.131.68 ▼0.2642.94 ▼3.85
Dashboard /wp-admin2,203 ▲155.84 ▲0.96103.71 ▼5.2934.93 ▼5.58
Posts /wp-admin/edit.php2,092 ▼02.02 ▼0.0038.21 ▲3.5537.80 ▲6.04
Add New Post /wp-admin/post-new.php1,533 ▼023.44 ▲0.08618.30 ▼56.4544.41 ▼8.66
Media Library /wp-admin/upload.php1,385 ▼04.24 ▲0.04101.42 ▼5.4244.95 ▼1.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/future/future.php+391
    Undefined index: future
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/future/future.php:46

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
  • Plugin Name: You should set the name of your plugin on the first line ( === future === )
You can take inspiration from this readme.txt

future/future.php 92% from 13 tests

Analyzing the main PHP file in "Future" version 1.2.4
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 483 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin511 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1110101511

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity13.50
▷ Minimum class complexity5.00
▷ Maximum class complexity22.00
Average method complexity4.57
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin