74% scheduled-posts-issue-fixer

Code Review | Scheduled Posts Issue Fixer

WordPress plugin Scheduled Posts Issue Fixer scored74%from 54 tests.

About plugin

  • Plugin page: scheduled-posts-i...
  • Plugin version: 1.0.10
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 25, 2023
  • Latest release: Aug 12, 2023
  • Number of updates: 24
  • Update frequency: every 8.3 days
  • Top authors: Fatih Toprak (83.33%)optimisthub (20.83%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,072 total downloads

Benchmarks

Plugin footprint 65% 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.01MB] [CPU: ▼6.35ms] Passed 4 tests

Server-side resources used by Scheduled Posts Issue Fixer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0236.86 ▼3.09
Dashboard /wp-admin3.32 ▲0.0246.47 ▼0.81
Posts /wp-admin/edit.php3.37 ▲0.0146.81 ▼2.66
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.32 ▼18.11
Media Library /wp-admin/upload.php3.24 ▲0.0133.42 ▼1.54

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Scheduled Posts Issue Fixer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.55 ▼0.824.09 ▲2.3540.33 ▲1.57
Dashboard /wp-admin2,206 ▲155.84 ▲0.87105.82 ▲3.1738.81 ▼5.45
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0034.31 ▼6.0832.62 ▼2.86
Add New Post /wp-admin/post-new.php1,519 ▲523.45 ▲5.85672.58 ▲38.8355.87 ▲3.81
Media Library /wp-admin/upload.php1,391 ▼04.18 ▲0.04104.44 ▲9.8245.89 ▲6.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/scheduled-posts-issue-fixer/scheduled-posts-issue-fixer.php+40
    Use of undefined constant CRON_NAME - assumed 'CRON_NAME' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • 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)
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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/scheduled-posts-issue-fixer/scheduled-posts-issue-fixer.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: missed schedule, scheduled posts issues, publish scheduled posts, cron, scheduled posts

scheduled-posts-issue-fixer/scheduled-posts-issue-fixer.php 92% from 13 tests

"Scheduled Posts Issue Fixer" version 1.0.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 267 characters long)

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
Good job! No executable or dangerous file extensions detected66 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1121343
Markdown114023

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
There are no PNG files in this plugin