84% editorial-calendar

Code Review | Editorial Calendar

WordPress plugin Editorial Calendar scored84%from 54 tests.

About plugin

  • Plugin page: editorial-calendar
  • Plugin version: 3.8.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 12, 2009
  • Latest release: Sep 25, 2023
  • Number of updates: 814
  • Update frequency: every 6.2 days
  • Top authors: zgrossbart (77.4%)MaryVogt (20.64%)mej (1.23%)

Code review

54 tests

User reviews

74 reviews

Install metrics

20,000+ active /1,378,886 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.19MB] [CPU: ▲0.90ms] Passed 4 tests

Analyzing server-side resources used by Editorial Calendar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1744.83 ▼0.80
Dashboard /wp-admin3.50 ▲0.2055.19 ▲3.63
Posts /wp-admin/edit.php3.61 ▲0.2655.91 ▲6.15
Add New Post /wp-admin/post-new.php6.08 ▲0.2090.21 ▼5.38
Media Library /wp-admin/upload.php3.42 ▲0.1945.95 ▲10.78
Calendar /wp-admin/edit.php?page=cal3.4750.01

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Editorial Calendar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.16 ▼0.461.95 ▲0.2945.80 ▲7.62
Dashboard /wp-admin2,193 ▲195.55 ▲0.0291.07 ▲3.2540.34 ▲1.01
Posts /wp-admin/edit.php2,107 ▲71.98 ▲0.0137.79 ▲2.2636.10 ▼1.87
Add New Post /wp-admin/post-new.php1,531 ▲322.96 ▼0.08678.32 ▼20.7350.97 ▼14.01
Media Library /wp-admin/upload.php1,407 ▲74.20 ▲0.00100.99 ▲1.0147.28 ▼0.37
Calendar /wp-admin/edit.php?page=cal2,1303.2467.9049.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • edcal_count
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/editorial-calendar/edcal.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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (The calendar integrates seamlessly into the WordPress administration console), #2 (See the big picture with a view of all your posts and when they'll be published.), #3 (Drag and drop posts to easily change dates and take control of your blog.), #4 (Create, edit, and schedule posts in one simple quickedit dialog.), #5 (Show as much or as little of your blog as you like.), #6 (Use a special calendar for each custom post type on your blog.), #7 (Use the new unscheduled drafts section to manage drafts before you schedule them.)
The official readme.txt might help

editorial-calendar/edcal.php 92% from 13 tests

This is the main PHP file of "Editorial Calendar" version 3.8.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("editorial-calendar.php" instead of "edcal.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin10,987 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript381,0951,9676,796
PO File201,1311,1662,633
PHP1228383870
CSS518188686
Bourne Shell1102

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity124.00
▷ Minimum class complexity124.00
▷ Maximum class complexity124.00
Average method complexity5.73
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.23MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png6.75KB3.13KB▼ 53.60%
screenshot-2.png34.74KB14.20KB▼ 59.11%
screenshot-3.png39.05KB15.88KB▼ 59.34%
images/tip_close.png0.50KB0.39KB▼ 22.50%
screenshot-7.png41.13KB16.80KB▼ 59.16%