84% scheduled-post-trigger

Code Review | MWW Scheduled Post Trigger

WordPress plugin MWW Scheduled Post Trigger scored84%from 54 tests.

About plugin

  • Plugin page: scheduled-post-tr...
  • Plugin version: 3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.3
  • WordPress version: 6.3.1
  • First release: Sep 7, 2016
  • Latest release: Aug 19, 2023
  • Number of updates: 51
  • Update frequency: every 51.3 days
  • Top authors: mossifer (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

50,000+ active /274,963 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.81ms] Passed 4 tests

A check of server-side resources used by MWW Scheduled Post Trigger
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.43 ▼2.73
Dashboard /wp-admin3.31 ▲0.0044.74 ▼5.75
Posts /wp-admin/edit.php3.36 ▲0.0046.74 ▲2.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.86 ▼7.48
Media Library /wp-admin/upload.php3.23 ▲0.0033.32 ▲0.72

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for MWW Scheduled Post Trigger
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.38 ▼1.022.08 ▼0.1743.20 ▼4.75
Dashboard /wp-admin2,203 ▲124.88 ▼1.02111.01 ▲4.5539.33 ▼3.18
Posts /wp-admin/edit.php2,092 ▲212.01 ▲0.0238.35 ▼1.6536.02 ▼3.56
Add New Post /wp-admin/post-new.php1,533 ▼023.29 ▲0.26653.62 ▲19.8465.77 ▲17.24
Media Library /wp-admin/upload.php1,382 ▼64.20 ▲0.0396.26 ▼0.0345.34 ▲3.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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)
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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scheduled-post-trigger/scheduled-post-trigger.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === scheduled-post-trigger === )
Please take inspiration from this readme.txt

scheduled-post-trigger/scheduled-post-trigger.php Passed 13 tests

The primary PHP file in "MWW Scheduled Post Trigger" version 3.2 is used by WordPress to initiate all plugin functionality
75 characters long description:
This plugin triggers scheduled posts that were missed by the server's cron.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16929

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin