84% missed-scheduled-posts-publisher

Code Review | Missed Scheduled Posts Publisher by WPBeginner

WordPress plugin Missed Scheduled Posts Publisher by WPBeginner scored84%from 54 tests.

About plugin

  • Plugin page: missed-scheduled-...
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2021
  • Latest release: Sep 19, 2023
  • Number of updates: 12
  • Update frequency: every 79.1 days
  • Top authors: peterwilsoncc (50%)tommcfarlin (33.33%)justinahinon (33.33%)

Code review

54 tests

User reviews

15 reviews

Install metrics

20,000+ active /56,302 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.01MB] [CPU: ▼1.16ms] Passed 4 tests

This is a short check of server-side resources used by Missed Scheduled Posts Publisher by WPBeginner
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.85 ▲3.11
Dashboard /wp-admin3.32 ▲0.0144.59 ▼4.16
Posts /wp-admin/edit.php3.37 ▲0.0147.22 ▲0.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.21 ▼1.76
Media Library /wp-admin/upload.php3.24 ▲0.0134.05 ▲1.22

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
wpb-missed-scheduled-posts-publisher-last-run
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Missed Scheduled Posts Publisher by WPBeginner
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,865 ▲11913.26 ▼1.124.40 ▲2.6440.26 ▼7.80
Dashboard /wp-admin2,271 ▲834.89 ▼1.00113.04 ▲1.6838.80 ▼2.03
Posts /wp-admin/edit.php2,154 ▲652.06 ▲0.0741.06 ▼1.7037.56 ▲1.20
Add New Post /wp-admin/post-new.php1,593 ▲5623.14 ▼0.11687.46 ▲10.5652.31 ▼0.49
Media Library /wp-admin/upload.php1,453 ▲654.27 ▲0.0597.32 ▼5.3344.92 ▲2.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • wpb-missed-scheduled-posts-publisher-last-run
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPB\\MissedScheduledPostsPublisher\\add_action() in wp-content/plugins/missed-scheduled-posts-publisher/plugin.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: scheduled posts, cron, missed schedule

missed-scheduled-posts-publisher/plugin.php 92% from 13 tests

This is the main PHP file of "Missed Scheduled Posts Publisher by WPBeginner" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("missed-scheduled-posts-publisher.php" instead of "plugin.php")

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
Everything looks great! No dangerous files found in this plugin251 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP348107251

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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
PNG images were not found in this plugin