84% content-update-scheduler

Code Review | Content Update Scheduler

WordPress plugin Content Update Scheduler scored 84% from 54 tests.

About plugin

  • Plugin page: content-update-sc...
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.0-5.4
  • WordPress version: 6.3.1
  • First release: Apr 1, 2020
  • Latest release: Nov 20, 2021
  • Number of updates: 7
  • Update frequency: every 85.4 days
  • Top authors: infinitnet (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active / 9,002 total downloads

Benchmarks

Plugin footprint 83% 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.04MB] [CPU: ▼3.57ms] Passed 4 tests

Analyzing server-side resources used by Content Update Scheduler
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.30 ▼10.01
Dashboard /wp-admin3.34 ▲0.0444.81 ▼1.46
Posts /wp-admin/edit.php3.39 ▲0.0445.48 ▼3.60
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.21 ▲0.78
Media Library /wp-admin/upload.php3.26 ▲0.0435.98 ▲0.79
Scheduled Content Update /wp-admin/options-general.php?page=tsu3.2332.22

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Content Update Scheduler
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.17 ▼1.221.74 ▼0.0340.92 ▼0.83
Dashboard /wp-admin2,210 ▲255.83 ▼0.0298.07 ▼6.6543.43 ▼2.40
Posts /wp-admin/edit.php2,112 ▲201.98 ▼0.0736.23 ▼6.6630.26 ▼6.25
Add New Post /wp-admin/post-new.php1,539 ▲1123.23 ▲4.83585.38 ▼17.1748.91 ▼13.49
Media Library /wp-admin/upload.php1,389 ▲44.26 ▲0.1197.71 ▼2.9841.37 ▼2.37
Scheduled Content Update /wp-admin/options-general.php?page=tsu8262.0326.3226.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% 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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 4× 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/content-update-scheduler/content-update-scheduler.php:948
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-update-scheduler/options.php:225
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-update-scheduler/trunk/options.php:225
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-update-scheduler/trunk/content-update-scheduler.php:948

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: publication, timing, content, time, publish...

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

The main file in "Content Update Scheduler" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
51 characters long description:
Schedule content updates for any page or post type.

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
No dangerous file extensions were detected739 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2139383681
JavaScript110041
Markdown14016
CSS1041

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity49.50
▷ Minimum class complexity7.00
▷ Maximum class complexity92.00
Average method complexity3.85
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods68
▷ Static methods68100.00%
▷ Public methods6088.24%
▷ Protected methods00.00%
▷ Private methods811.76%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants0
▷ Global constants00.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
10 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%
trunk/images/ui-bg_highlight-hard_100_eeeeee_1x100.png0.25KB0.14KB▼ 43.65%
images/ui-bg_flat_75_ffffff_40x100.png0.20KB0.08KB▼ 58.17%
trunk/images/ui-bg_glass_55_fbf8ee_1x400.png0.33KB0.13KB▼ 60.29%
trunk/images/ui-bg_highlight-soft_15_cc0000_1x100.png0.31KB0.18KB▼ 43.48%