83% re-trigger-scheduled-posts

Code Review | Re-trigger Scheduled Posts

WordPress plugin Re-trigger Scheduled Posts scored83%from 54 tests.

About plugin

  • Plugin page: re-trigger-schedu...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.8
  • WordPress version: 6.3.1
  • First release: Aug 17, 2021
  • Latest release: Aug 17, 2021
  • Number of updates: 3
  • Update frequency: every 3.7 days
  • Top authors: landonbotis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /343 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Re-trigger Scheduled Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.96 ▼13.31
Dashboard /wp-admin3.31 ▲0.0148.82 ▼0.72
Posts /wp-admin/edit.php3.36 ▲0.0047.30 ▼0.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.06 ▲11.40
Media Library /wp-admin/upload.php3.23 ▲0.0034.25 ▲1.44

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Re-trigger Scheduled Posts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.154.49 ▲2.6142.09 ▼3.96
Dashboard /wp-admin2,206 ▲186.06 ▲1.15106.19 ▼6.9147.65 ▲6.22
Posts /wp-admin/edit.php2,092 ▲62.05 ▼0.1339.37 ▲2.1833.78 ▼4.99
Add New Post /wp-admin/post-new.php1,537 ▲423.17 ▲0.08613.96 ▼36.0150.29 ▼6.83
Media Library /wp-admin/upload.php1,382 ▼64.17 ▼0.0494.48 ▼14.1143.00 ▼1.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/re-trigger-scheduled-posts/retrigger-scheduled-posts.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 86% from 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
6 plugin tags: terms, tag, categories, tags, category...

re-trigger-scheduled-posts/retrigger-scheduled-posts.php 69% from 13 tests

The main PHP script in "Re-trigger Scheduled Posts" version 1.1.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("re-trigger-scheduled-posts.php" instead of "retrigger-scheduled-posts.php")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")

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 plugin53 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP192324
Markdown114021
JSON1008

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin