74% postpone-posts

Code Review | Postpone Posts

WordPress plugin Postpone Posts scored74%from 54 tests.

About plugin

  • Plugin page: postpone-posts
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 10, 2017
  • Latest release: Dec 22, 2017
  • Number of updates: 7
  • Update frequency: every 1.9 days
  • Top authors: ekleinod (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /636 total downloads

Benchmarks

Plugin footprint 65% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.81MB] [CPU: ▼54.57ms] Passed 4 tests

Analyzing server-side resources used by Postpone Posts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.295.70 ▼34.57
Dashboard /wp-admin2.19 ▼1.117.70 ▼40.11
Posts /wp-admin/edit.php2.19 ▼1.169.80 ▼40.19
Add New Post /wp-admin/post-new.php2.19 ▼3.696.59 ▼103.42
Media Library /wp-admin/upload.php2.19 ▼1.047.51 ▼28.05
Postpone Posts /wp-admin/options-general.php?page=postpone_posts_options2.196.93
Postpone Posts /wp-admin/tools.php?page=postpone_posts_action2.197.38

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
postpone_posts_days
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Postpone Posts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.20 ▼1.201.88 ▲0.0942.67 ▼7.77
Dashboard /wp-admin2,209 ▲245.79 ▲0.86107.80 ▼5.0938.97 ▼6.68
Posts /wp-admin/edit.php2,097 ▲82.01 ▼0.0236.86 ▼4.1633.79 ▼2.50
Add New Post /wp-admin/post-new.php1,541 ▲817.64 ▼5.50668.80 ▲80.5963.70 ▲6.48
Media Library /wp-admin/upload.php1,392 ▲134.23 ▲0.0398.04 ▼5.5641.60 ▼1.87
Postpone Posts /wp-admin/options-general.php?page=postpone_posts_options8182.1724.8126.56
Postpone Posts /wp-admin/tools.php?page=postpone_posts_action8172.0522.9430.18

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
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method PostponePosts::loadTextdomain() should not be called statically
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=postpone_posts_action
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method PostponePosts::loadTextdomain() should not be called statically
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=postpone_posts_action
    • > User deprecated in wp-includes/functions.php+5828
    Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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 on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: schedule, post

postpone-posts/postpone-posts.php Passed 13 tests

Analyzing the main PHP file in "Postpone Posts" version 1.0.0
68 characters long description:
Postpones all future (planned) posts by a selectable number of days.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin572 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2199161372
PO File25868200

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity1.95
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods2095.24%
▷ Public methods1361.90%
▷ Protected methods00.00%
▷ Private methods838.10%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants00.00%
▷ Class constants13100.00%
▷ Public constants13100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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