78% wp-content-scheduler-with-range

Code Review | WP Content Scheduler With Range

WordPress plugin WP Content Scheduler With Range scored78%from 54 tests.

About plugin

  • Plugin page: wp-content-schedu...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.6
  • WordPress version: 6.3.1
  • First release: Mar 30, 2016
  • Latest release: Jun 29, 2021
  • Number of updates: 45
  • Update frequency: every 42.6 days
  • Top authors: cedcommerce (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /6,624 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼12.84ms] Passed 4 tests

A check of server-side resources used by WP Content Scheduler With Range
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2444.08 ▼4.94
Dashboard /wp-admin3.27 ▼0.0332.10 ▼14.78
Posts /wp-admin/edit.php3.41 ▲0.0633.95 ▼17.34
Add New Post /wp-admin/post-new.php5.65 ▼0.2388.51 ▼14.30
Media Library /wp-admin/upload.php3.35 ▲0.1334.66 ▼0.13
Scheduled posts /wp-admin/admin.php?page=scheduler-posts3.2529.91
WCSWR /wp-admin/admin.php?page=wp-content-scheduler-with-range3.2538.30

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
ced_wcswr_latest_version
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WP Content Scheduler With Range
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲19313.77 ▼0.795.58 ▲3.6545.79 ▼0.75
Dashboard /wp-admin2,247 ▲625.13 ▲0.26100.93 ▼4.8883.13 ▲37.76
Posts /wp-admin/edit.php2,158 ▲662.30 ▲0.3137.18 ▼1.9437.38 ▲0.34
Add New Post /wp-admin/post-new.php1,721 ▲19322.25 ▲3.88671.89 ▲6.4134.83 ▼16.74
Media Library /wp-admin/upload.php1,441 ▲534.42 ▲0.2699.55 ▼18.8863.74 ▲16.89
Scheduled posts /wp-admin/admin.php?page=scheduler-posts9612.1230.1641.06
WCSWR /wp-admin/admin.php?page=wp-content-scheduler-with-range3,1547.48173.35106.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • ced_wcswr_latest_version

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-content-scheduler-with-range
    • > Deprecated in wp-content/plugins/wp-content-scheduler-with-range/includes/wp-content-scheduler-with-range-class.php+107
    array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-content-scheduler-with-range
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-content-scheduler-with-range
    • > Notice in wp-content/plugins/wp-content-scheduler-with-range/includes/settings.php+62
    Undefined variable: _SESSION
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-content-scheduler-with-range
    • > Notice in wp-content/plugins/wp-content-scheduler-with-range/includes/settings.php+62
    Trying to access array offset on value of type null
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-content-scheduler-with-range
    • > Warning in wp-content/plugins/wp-content-scheduler-with-range/includes/settings.php+690
    session_start(): Cannot start session when headers already sent
    • > GET request to /wp-admin/admin.php?page=wp-content-scheduler-with-range
    • > Notice in wp-content/plugins/wp-content-scheduler-with-range/includes/settings.php+634
    Trying to access array offset on value of type bool

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-content-scheduler-with-range
    • > Network (severe)
    wp-content/plugins/wp-content-scheduler-with-range/assets/js/wcswr_admin_mailer.js?ver=1.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Add a description for screenshot #10 in wp-content-scheduler-with-range/assets to your readme.txt
The official readme.txt might help

wp-content-scheduler-with-range/wp-content-scheduler-with-range.php Passed 13 tests

The entry point to "WP Content Scheduler With Range" version 1.1 is a PHP file that has certain tags in its header comment area
42 characters long description:
Show or hide your posts in a range of date

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,422 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP72152561,746
CSS51296735
JavaScript57764708
PO File1100104233

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity82.00
▷ Minimum class complexity82.00
▷ Maximum class complexity82.00
Average method complexity5.26
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
15 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
assets/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
assets/images/cross.png7.04KB2.92KB▼ 58.46%
assets/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
assets/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%