77% wp-scheduled-posts

Code Review | SchedulePress – Best Editorial Calendar, Missed Schedule & Auto Social Share

WordPress plugin SchedulePress – Best Editorial Calendar, Missed Schedule & Auto Social Share scored77%from 54 tests.

About plugin

  • Plugin page: wp-scheduled-posts
  • Plugin version: 5.0.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Mar 10, 2013
  • Latest release: Nov 28, 2023
  • Number of updates: 150
  • Update frequency: every 26.1 days
  • Top authors: Asif2BD (46.67%)re_enter_rupok (22.67%)wpdevteam (19.33%)priyomukul (8%)onetarek (6%)

Code review

54 tests

User reviews

152 reviews

Install metrics

10,000+ active /470,885 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼1.33ms] Passed 4 tests

Server-side resources used by SchedulePress – Best Editorial Calendar, Missed Schedule & Auto Social Share
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1042.91 ▲1.93
Dashboard /wp-admin3.51 ▲0.1758.22 ▼8.22
Posts /wp-admin/edit.php3.58 ▲0.2249.60 ▲2.75
Add New Post /wp-admin/post-new.php7.42 ▲1.5396.47 ▼1.79
Media Library /wp-admin/upload.php3.37 ▲0.1545.14 ▲12.79
Settings /wp-admin/admin.php?page=schedulepress3.4342.30
Calendar /wp-admin/edit.php?page=schedulepress-post3.3751.31
Calendar /wp-admin/admin.php?page=schedulepress-calendar3.4339.02

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 455 new files
Database: no new tables, 10 new options
New WordPress options
wpins_wp-scheduled-posts_force_tracked
theysaidso_admin_options
widget_recent-comments
wpsp_version
wpsp_data_migration_allow_categories
wpsp_settings_v5
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by SchedulePress – Best Editorial Calendar, Missed Schedule & Auto Social Share
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,042 ▲28013.83 ▼0.4310.59 ▲8.9643.93 ▲0.54
Dashboard /wp-admin2,270 ▲935.61 ▼0.0294.45 ▼6.0894.23 ▲51.83
Posts /wp-admin/edit.php2,205 ▲1052.59 ▲0.5655.38 ▲13.2860.95 ▲23.48
Add New Post /wp-admin/post-new.php1,678 ▲15224.79 ▲1.32733.50 ▲93.9241.73 ▼17.66
Media Library /wp-admin/upload.php1,454 ▲574.22 ▲0.05115.84 ▲13.3045.94 ▲4.78
Settings /wp-admin/admin.php?page=schedulepress4,69339.62960.8093.27
Calendar /wp-admin/edit.php?page=schedulepress-post1,65411.80268.8667.70
Calendar /wp-admin/admin.php?page=schedulepress-calendar4,87838.83843.2151.70

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 10 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • wpsp_version
    • wpins_wp-scheduled-posts_force_tracked
    • widget_recent-comments
    • theysaidso_admin_options
    • wpsp_settings_v5
    • db_upgraded
    • wpsp_data_migration_allow_categories
    • widget_recent-posts

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Please fix the following
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-scheduled-posts/vendor/wpdevelopers/pinterest-api-php/demo/index.php
    • > /wp-content/plugins/wp-scheduled-posts/includes/Admin/Notices/upgrade.php
    • > /wp-content/plugins/wp-scheduled-posts/vendor/wpdevelopers/pinterest-api-php/demo/boot.php
    • > /wp-content/plugins/wp-scheduled-posts/vendor/wpdevelopers/pinterest-api-php/demo/callback.php
  • 120× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/wp-scheduled-posts/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-scheduled-posts/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Facebook\\Http\\RequestBodyInterface' not found in wp-content/plugins/wp-scheduled-posts/vendor/facebook/graph-sdk/src/Facebook/Http/RequestBodyMultipart.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'DirkGroenen\\Pinterest\\Models\\Model' not found in wp-content/plugins/wp-scheduled-posts/vendor/wpdevelopers/pinterest-api-php/src/Pinterest/Models/User.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/wp-scheduled-posts/vendor/guzzlehttp/psr7/src/UploadedFile.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/wp-scheduled-posts/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-scheduled-posts/vendor/guzzlehttp/psr7/src/BufferStream.php:15
    • > PHP Warning
      require(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wp-scheduled-posts/vendor/wpdevelopers/pinterest-api-php/demo/boot.php on line 6
    • > PHP Fatal error
      Trait 'WPSP\\Traits\\SocialHelper' not found in wp-content/plugins/wp-scheduled-posts/includes/Social/Twitter.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'DirkGroenen\\Pinterest\\Models\\Model' not found in wp-content/plugins/wp-scheduled-posts/vendor/wpdevelopers/pinterest-api-php/src/Pinterest/Models/Pin.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 44 tag instead of maximum 10
  • Screenshots: A description for screenshot #2 is required in wp-scheduled-posts/assets to your readme.txt
Please take inspiration from this readme.txt

wp-scheduled-posts/wp-scheduled-posts.php 92% from 13 tests

The principal PHP file in "SchedulePress – Best Editorial Calendar, Missed Schedule & Auto Social Share" v. 5.0.5 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 250 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin70,476 lines of code in 372 files:
LanguageFilesBlank linesComment linesLines of code
PHP2924,81015,11443,339
JavaScript291,7011,87719,941
Markdown1171202,802
CSS172882282,634
JSON300997
HTML122510
SVG1300181
XML20034
YAML21019
Dockerfile18010
make1409

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
Please fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 179)
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity14.88
▷ Minimum class complexity1.00
▷ Maximum class complexity179.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity179.00
Code structure
Namespaces45
Interfaces20
Traits5
Classes220
▷ Abstract classes31.36%
▷ Concrete classes21798.64%
▷ Final classes2511.52%
Methods1,804
▷ Static methods24513.58%
▷ Public methods1,56186.53%
▷ Protected methods392.16%
▷ Private methods20411.31%
Functions198
▷ Named functions8140.91%
▷ Anonymous functions11759.09%
Constants252
▷ Global constants10642.06%
▷ Class constants14657.94%
▷ Public constants14397.95%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
60 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/author-3.png3.46KB2.76KB▼ 20.35%
assets/images/icon-facebook.png0.94KB0.97KB0.00%
assets/images/icon-more.png0.19KB0.23KB0.00%
assets/images/documentation-white.png0.31KB0.44KB0.00%
assets/images/icon-linkedin-small-white.png0.32KB0.35KB0.00%