94% post-status-scheduler

Code Review | Post Status Scheduler

WordPress plugin Post Status Scheduler scored 94% from 54 tests.

About plugin

  • Plugin page: post-status-sched...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.7.3
  • WordPress version: 5.8.1
  • First release: Jun 16, 2014
  • Latest release: May 23, 2017
  • Number of updates: 45
  • Update frequency: every 23.8 days
  • Top authors: farne (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 2,105 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼141.92ms] Passed 4 tests

An overview of server-side resources used by Post Status Scheduler
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.05 ▲0.2236.80 ▲1.94
Dashboard /wp-admin3.30 ▲0.2443.79 ▲2.86
Posts /wp-admin/edit.php3.41 ▲0.2943.51 ▼9.17
Add New Post /wp-admin/post-new.php5.65 ▲0.2289.44 ▼563.32
Media Library /wp-admin/upload.php3.24 ▲0.2436.38 ▲3.16
Post Status Scheduler /wp-admin/options-general.php?page=post-status-scheduler3.1928.45

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Status Scheduler
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲7115.88 ▲0.288.80 ▼0.1047.29 ▼0.71
Dashboard /wp-admin2,978 ▲415.88 ▼0.07146.22 ▲3.30118.66 ▼2.32
Posts /wp-admin/edit.php2,744 ▲52.69 ▲0.0064.53 ▲0.6593.23 ▲8.70
Add New Post /wp-admin/post-new.php1,875 ▲37519.20 ▲0.65365.03 ▼8.42112.88 ▲1.58
Media Library /wp-admin/upload.php1,815 ▲55.04 ▲0.06147.67 ▼12.69115.29 ▼5.45
Post Status Scheduler /wp-admin/options-general.php?page=post-status-scheduler1,2112.1060.3278.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=post-status-scheduler
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=post-status-scheduler
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: poststatus, tags, scheduling, change, schedule...

post-status-scheduler/post-status-scheduler.php Passed 13 tests

Analyzing the main PHP file in "Post Status Scheduler" version 1.3.1
78 characters long description:
Change status, category or postmeta of any post type at a scheduled timestamp.

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
Everything looks great! No dangerous files found in this plugin2,176 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22301951,157
PHP7643472974
CSS2161545

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity37.67
▷ Minimum class complexity1.00
▷ Maximum class complexity146.00
Average method complexity5.49
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods49
▷ Static methods1734.69%
▷ Public methods49100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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