84% postpone

Code Review | Postpone

WordPress plugin Postpone scored84%from 54 tests.

About plugin

  • Plugin page: postpone
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Apr 15, 2015
  • Latest release: Sep 27, 2016
  • Number of updates: 7
  • Update frequency: every 76.0 days
  • Top authors: urre (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /965 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.56ms] Passed 4 tests

A check of server-side resources used by Postpone
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.29 ▼5.48
Dashboard /wp-admin3.33 ▲0.0250.12 ▼0.90
Posts /wp-admin/edit.php3.38 ▲0.0250.80 ▼3.33
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.30 ▼0.51
Media Library /wp-admin/upload.php3.25 ▲0.0237.83 ▲0.27

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

Browser metrics Passed 4 tests

An overview of browser requirements for Postpone
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲12013.48 ▼1.078.92 ▲6.8741.86 ▼5.89
Dashboard /wp-admin2,214 ▲375.64 ▲0.0091.63 ▼10.7340.41 ▼2.73
Posts /wp-admin/edit.php2,116 ▲162.17 ▲0.1638.66 ▲1.0233.36 ▼1.37
Add New Post /wp-admin/post-new.php1,533 ▲723.30 ▼0.40660.53 ▼63.9257.99 ▲5.62
Media Library /wp-admin/upload.php1,413 ▲164.22 ▲0.06100.38 ▼2.6243.18 ▼2.24

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/postpone/postpone.php:33

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 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Postpone) image required
The official readme.txt might help

postpone/postpone.php Passed 13 tests

"Postpone" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
89 characters long description:
Publish In 1 hour, Tomorrow 8am, Tomorrow after lunch, Tonight, Next monday or Next month

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
Good job! No executable or dangerous file extensions detected212 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2211179
PHP1192647
PO File1305233
JSON10025
Markdown111025
CSS1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin