84% scheduled-content-by-sizeable

Code Review | Scheduled Content (by Sizeable)

WordPress plugin Scheduled Content (by Sizeable) scored84%from 54 tests.

About plugin

  • Plugin page: scheduled-content...
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 28, 2013
  • Latest release: Jul 31, 2023
  • Number of updates: 14
  • Update frequency: every 274.6 days
  • Top authors: theandystratton (50%)wpmaintainer (42.86%)szbl (21.43%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,413 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.66ms] Passed 4 tests

An overview of server-side resources used by Scheduled Content (by Sizeable)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.17 ▼7.13
Dashboard /wp-admin3.32 ▲0.0250.33 ▼1.45
Posts /wp-admin/edit.php3.37 ▲0.0147.67 ▼2.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.93 ▼15.71
Media Library /wp-admin/upload.php3.24 ▲0.0137.95 ▲2.04

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

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

Browser metrics Passed 4 tests

Scheduled Content (by Sizeable): an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.69 ▲0.471.67 ▼0.3340.75 ▼1.21
Dashboard /wp-admin2,195 ▲185.57 ▼0.0189.49 ▼1.3141.36 ▲1.38
Posts /wp-admin/edit.php2,097 ▼61.99 ▲0.0233.94 ▼8.2433.74 ▼6.83
Add New Post /wp-admin/post-new.php1,526 ▲123.67 ▲0.66687.78 ▲23.4662.56 ▲3.36
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.0296.10 ▼16.9642.65 ▼6.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/scheduled-content-by-sizeable/szbl-scheduled-content.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid url: ""
The official readme.txt might help

scheduled-content-by-sizeable/szbl-scheduled-content.php 92% from 13 tests

"Scheduled Content (by Sizeable)" version 1.3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("scheduled-content-by-sizeable.php" instead of "szbl-scheduled-content.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
No dangerous file extensions were detected75 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP116975

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods360.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin