80% wpcs-content-scheduler

Code Review | Content Scheduler - Schedule Posts, Editorial Calendar and Notes

WordPress plugin Content Scheduler - Schedule Posts, Editorial Calendar and Notes scored 80% from 54 tests.

About plugin

  • Plugin page: wpcs-content-sche...
  • Plugin version: 1.3.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9.2
  • WordPress version: 5.9.2
  • First release: Nov 25, 2021
  • Latest release: Mar 25, 2022
  • Number of updates: 9
  • Update frequency: every 14.2 days
  • Top authors: ninetyninew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 384 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲4.44MB] [CPU: ▼270.87ms] Passed 4 tests

A check of server-side resources used by Content Scheduler - Schedule Posts, Editorial Calendar and Notes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /8.37 ▲4.8576.20 ▲22.02
Dashboard /wp-admin8.38 ▲4.9860.01 ▲23.92
Posts /wp-admin/edit.php8.38 ▲4.7563.24 ▲21.41
Add New Post /wp-admin/post-new.php10.16 ▲3.19115.00 ▼1,144.42
Media Library /wp-admin/upload.php8.38 ▲5.0947.31 ▲17.50
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius8.3844.95

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 477 new files
Database: no new tables, 7 new options
New WordPress options
wpcs_content_scheduler_rewrites_flushed
fs_accounts
wpcs_content_scheduler_settings
fs_debug_mode
wpcs_content_scheduler_version
fs_gdpr
fs_active_plugins

Browser metrics Passed 4 tests

Checking browser requirements for Content Scheduler - Schedule Posts, Editorial Calendar and Notes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,841 ▲8715.71 ▲0.125.67 ▲0.053.12 ▲0.49
Dashboard /wp-admin2,935 ▲746.17 ▼0.07127.77 ▼8.67173.00 ▲3.68
Posts /wp-admin/edit.php2,734 ▲433.24 ▼0.0265.64 ▲1.80152.65 ▲15.27
Add New Post /wp-admin/post-new.php1,714 ▲321.13 ▼0.16409.37 ▼69.39171.40 ▲13.42
Media Library /wp-admin/upload.php1,741 ▲495.53 ▲0.05136.42 ▼8.16200.15 ▲12.25
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,4442.5057.75115.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wpcs-content-scheduler/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • wpcs_content_scheduler_settings
    • wpcs_content_scheduler_rewrites_flushed
    • fs_active_plugins
    • wpcs_content_scheduler_version
    • fs_gdpr
    • fs_accounts
    • fs_debug_mode

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: post scheduler, schedule posts, scheduled posts, editorial calendar

wpcs-content-scheduler/wpcs-content-scheduler.php Passed 13 tests

The principal PHP file in "Content Scheduler - Schedule Posts, Editorial Calendar and Notes" v. 1.3.0 is loaded by WordPress automatically on each request
75 characters long description:
Manage all your content in an easy to use drag and drop editorial calendar.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected69,404 lines of code in 424 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2624,7632,05234,531
PHP1157,63616,10931,541
CSS171891041,675
Sass1417915764
Markdown72060645
YAML566129
JSON400119

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity79.17
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes53
▷ Abstract classes23.77%
▷ Concrete classes5196.23%
▷ Final classes00.00%
Methods1,160
▷ Static methods17815.34%
▷ Public methods82070.69%
▷ Protected methods151.29%
▷ Private methods32528.02%
Functions94
▷ Named functions94100.00%
▷ Anonymous functions00.00%
Constants125
▷ Global constants10080.00%
▷ Class constants2520.00%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%