84% wp-post-scheduler

Code Review | WP Post Scheduler

WordPress plugin WP Post Scheduler scored84%from 54 tests.

About plugin

  • Plugin page: wp-post-scheduler
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.3
  • WordPress version: 6.3.1
  • First release: Aug 9, 2015
  • Latest release: Aug 10, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: wamtengineers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /805 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.03MB] [CPU: ▼8.06ms] Passed 4 tests

This is a short check of server-side resources used by WP Post Scheduler
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.54 ▼10.05
Dashboard /wp-admin3.35 ▼0.0043.25 ▼15.40
Posts /wp-admin/edit.php3.40 ▲0.0448.41 ▲0.90
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.81 ▼6.33
Media Library /wp-admin/upload.php3.27 ▲0.0432.94 ▼0.45
WP Post Scheduler /wp-admin/options-general.php?page=wp-post-scheduler3.2428.74

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Post Scheduler
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.22 ▼1.531.83 ▼0.9244.04 ▼10.22
Dashboard /wp-admin2,210 ▲224.85 ▼0.97108.28 ▼8.9941.48 ▼1.07
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0139.61 ▲2.4235.00 ▲1.92
Add New Post /wp-admin/post-new.php1,536 ▼023.13 ▼0.28712.96 ▲46.7251.27 ▼7.82
Media Library /wp-admin/upload.php1,392 ▲44.18 ▼0.0796.26 ▼8.1342.35 ▼1.15
WP Post Scheduler /wp-admin/options-general.php?page=wp-post-scheduler7822.0324.4726.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • 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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-scheduler/wp-post-scheduler.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: jetpack, quickpost

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

The main PHP file in "WP Post Scheduler" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
This plugin is being used as a bridge between WP Post Scheduler and Wordpress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin151 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1128151

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin