84% future-dater

Code Review | Future Dater

WordPress plugin Future Dater scored84%from 54 tests.

About plugin

  • Plugin page: future-dater
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.1
  • WordPress version: 6.3.1
  • First release: May 23, 2013
  • Latest release: May 23, 2013
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: SWCP (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /791 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Server-side resources used by Future Dater
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.46 ▼3.82
Dashboard /wp-admin3.31 ▲0.0043.34 ▼2.30
Posts /wp-admin/edit.php3.36 ▲0.0039.97 ▼5.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.96 ▼17.25
Media Library /wp-admin/upload.php3.23 ▲0.0038.31 ▲3.22

Server storage [IO: ▲0.01MB] [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, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Future Dater
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.25 ▼0.421.78 ▲0.1942.47 ▲3.39
Dashboard /wp-admin2,195 ▲145.61 ▼0.1084.28 ▼13.1337.19 ▼3.80
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0034.45 ▼1.4536.89 ▲4.72
Add New Post /wp-admin/post-new.php1,526 ▼023.49 ▼0.06678.26 ▲2.5551.60 ▼14.28
Media Library /wp-admin/upload.php1,403 ▼04.13 ▼0.09108.36 ▼7.4348.17 ▲0.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_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
Even though everything seems fine, this is not 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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/future-dater/future-dater.php:14

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: shortcode, future, date, quarter

future-dater/future-dater.php Passed 13 tests

The main PHP file in "Future Dater" ver. 0.9 adds more information about the plugin and also serves as the entry point for this plugin
59 characters long description:
Adds a shortcode to include a specific kind of future date.

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 plugin137 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11653137

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin