79% schedule-posts-calendar

Code Review | Schedule Posts Calendar

WordPress plugin Schedule Posts Calendar scored79%from 54 tests.

About plugin

  • Plugin page: schedule-posts-ca...
  • Plugin version: 5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 2, 2012
  • Latest release: Aug 23, 2023
  • Number of updates: 121
  • Update frequency: every 34.6 days
  • Top authors: GregRoss (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /29,070 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.02MB] [CPU: ▼7.05ms] Passed 4 tests

Analyzing server-side resources used by Schedule Posts Calendar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1034.07 ▼8.58
Dashboard /wp-admin3.41 ▲0.1050.68 ▲4.21
Posts /wp-admin/edit.php3.13 ▼0.2326.55 ▼20.14
Add New Post /wp-admin/post-new.php5.99 ▲0.10102.74 ▲12.78
Media Library /wp-admin/upload.php3.33 ▲0.1033.17 ▼3.67

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Schedule Posts Calendar: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.44 ▲0.151.84 ▲0.0642.30 ▼3.55
Dashboard /wp-admin2,210 ▲224.85 ▼1.22108.32 ▼0.0844.06 ▼0.06
Posts /wp-admin/edit.php2,111 ▲252.07 ▲0.0938.65 ▼0.8233.08 ▲2.73
Add New Post /wp-admin/post-new.php1,528 ▲923.50 ▲0.26597.68 ▼90.9654.68 ▼0.93
Media Library /wp-admin/upload.php1,392 ▲74.25 ▲0.0695.84 ▼5.6542.53 ▼2.00
Schedule Posts Calendar /wp-admin/schedule-posts-calendar.php260.440.0914.91

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 | 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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/schedule-posts-calendar/schedule-posts-calendar.php:506

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/schedule-posts-calendar.php
    • > Network (severe)
    wp-admin/schedule-posts-calendar.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: calendar, admin, posts

schedule-posts-calendar/schedule-posts-calendar.php Passed 13 tests

The entry point to "Schedule Posts Calendar" version 5.3 is a PHP file that has certain tags in its header comment area
57 characters long description:
Adds a JavaScript calendar to the schedule posts options.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin3,850 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS711593,048
JavaScript3112170442
PHP29694360

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
skins/imgs/dhxcalendar_material/dhxcalendar_arrow_right.png0.21KB0.21KB0.00%
skins/imgs/dhxcalendar_material/dhxcalendar_arrow_left.png0.20KB0.20KB0.00%
skins/imgs/dhxcalendar_material/dhxcalendar_clock.png0.31KB0.31KB0.00%