84% post-expire-date-sidebar

Code Review | Post expire date Sidebar

WordPress plugin Post expire date Sidebar scored 84% from 54 tests.

About plugin

  • Plugin page: post-expire-date-...
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5.3
  • WordPress version: 6.3.1
  • First release: Mar 20, 2020
  • Latest release: Nov 24, 2020
  • Number of updates: 14
  • Update frequency: every 17.8 days
  • Top authors: popeating (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 8,597 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.68MB] [CPU: ▼23.46ms] Passed 4 tests

Analyzing server-side resources used by Post expire date Sidebar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.43 ▼20.71
Dashboard /wp-admin3.33 ▲0.0341.90 ▼7.23
Posts /wp-admin/edit.php3.38 ▲0.0248.04 ▲3.80
Add New Post /wp-admin/post-new.php3.11 ▼2.7733.78 ▼64.63
Media Library /wp-admin/upload.php3.25 ▲0.0231.94 ▼1.25

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post expire date Sidebar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.23 ▼1.151.78 ▼0.0537.51 ▲0.70
Dashboard /wp-admin2,209 ▲184.84 ▼0.08111.73 ▲7.7543.60 ▲3.96
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0139.57 ▲5.2135.20 ▼0.21
Add New Post /wp-admin/post-new.php1,530 ▼1223.47 ▲5.20677.20 ▲14.8856.18 ▼1.19
Media Library /wp-admin/upload.php1,379 ▼64.21 ▲0.0696.54 ▼15.9444.30 ▼3.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-expire-date-sidebar/expire.php:48

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: schedule, gutenberg, expiration, sidebar, post

post-expire-date-sidebar/expire.php 92% from 13 tests

The primary PHP file in "Post expire date Sidebar" version 1.3.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("post-expire-date-sidebar.php" instead of "expire.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin207 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1173118
PHP1131086
CSS1003

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.05
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin