67% coschedule-by-todaymade

Code Review | CoSchedule

WordPress plugin CoSchedule scored67%from 54 tests.

About plugin

  • Plugin page: coschedule-by-tod...
  • Plugin version: 3.3.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0
  • WordPress version: 6.3.1
  • First release: Sep 26, 2013
  • Latest release: Apr 18, 2023
  • Number of updates: 124
  • Update frequency: every 28.3 days
  • Top authors: todaymade (57.26%)rveitch (23.39%)jasoncoschedule (12.1%)cosrnos (4.84%)psethre (4.03%)

Code review

54 tests

User reviews

188 reviews

Install metrics

7,000+ active /478,691 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.33MB] [CPU: ▲155.37ms] Passed 4 tests

This is a short check of server-side resources used by CoSchedule
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2644.68 ▼0.60
Dashboard /wp-admin3.66 ▲0.35330.46 ▲278.71
Posts /wp-admin/edit.php3.71 ▲0.35230.44 ▲177.48
Add New Post /wp-admin/post-new.php6.24 ▲0.36403.87 ▲309.00
Media Library /wp-admin/upload.php3.58 ▲0.35201.28 ▲165.90

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

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

Browser metrics Passed 4 tests

CoSchedule: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5913.25 ▼1.151.82 ▲0.0342.82 ▼6.83
Dashboard /wp-admin2,221 ▲365.94 ▲0.05100.31 ▼6.6180.74 ▲39.96
Posts /wp-admin/edit.php2,101 ▲122.15 ▲0.1235.68 ▼1.7333.36 ▼2.50
Add New Post /wp-admin/post-new.php1,681 ▲14522.57 ▼0.40653.99 ▼14.2661.00 ▲14.06
Media Library /wp-admin/upload.php1,391 ▲64.11 ▼0.10100.87 ▲0.7578.42 ▲38.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method TM_CoSchedule::uninstall() should not be called statically
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/coschedule-by-todaymade/_access-denied.php
    • > /wp-content/plugins/coschedule-by-todaymade/_missing-token.php
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      include_once(ABSPATHWPINC/class-http.php): failed to open stream: No such file or directory in wp-content/plugins/coschedule-by-todaymade/tm-scheduler.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/coschedule-by-todaymade/frame.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/coschedule-by-todaymade/plugin_setup.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/coschedule-by-todaymade/tm-scheduler.php:2165
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/class-http.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/coschedule-by-todaymade/tm-scheduler.php on line 18
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/coschedule-by-todaymade/tm-scheduler.php on line 18
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/coschedule-by-todaymade/tm-scheduler.php on line 18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 87% 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
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2 in coschedule-by-todaymade/assets to your readme.txt
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
Please take inspiration from this readme.txt

coschedule-by-todaymade/tm-scheduler.php 85% from 13 tests

The principal PHP file in "CoSchedule" v. 3.3.9 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("coschedule-by-todaymade.php" instead of "tm-scheduler.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,595 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP53795641,595

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity253.00
▷ Minimum class complexity253.00
▷ Maximum class complexity253.00
Average method complexity3.90
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods87
▷ Static methods00.00%
▷ Public methods87100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin