10% scheduled-contnet-by-streama

Code Review | Scheduled Content

WordPress plugin Scheduled Content scored10%from 54 tests.

About plugin

  • Plugin page: scheduled-contnet...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: Dec 23, 2012
  • Latest release: May 8, 2014
  • Number of updates: 16
  • Update frequency: every 31.3 days
  • Top authors: Danny159 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /2,904 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/scheduled-contnet-by-streama/index.php+12
    date_default_timezone_set(): Timezone ID '' is invalid

Server metrics [RAM: ▼1.94MB] [CPU: ▼55.53ms] Passed 4 tests

An overview of server-side resources used by Scheduled Content
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.44 ▼36.14
Dashboard /wp-admin2.07 ▼1.275.70 ▼56.59
Posts /wp-admin/edit.php2.07 ▼1.285.22 ▼39.04
Add New Post /wp-admin/post-new.php2.07 ▼3.815.42 ▼90.35
Media Library /wp-admin/upload.php2.07 ▼1.155.00 ▼30.04

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Scheduled Content
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.71 ▼0.581.87 ▼0.1246.94 ▲4.05
Dashboard /wp-admin2,203 ▲154.82 ▼0.09111.94 ▼6.2641.89 ▼1.90
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0434.77 ▼1.8730.64 ▼4.95
Add New Post /wp-admin/post-new.php1,514 ▼017.51 ▼0.02653.90 ▼12.4246.33 ▼4.09
Media Library /wp-admin/upload.php1,385 ▼04.30 ▲0.0998.72 ▼4.2241.11 ▼3.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/scheduled-contnet-by-streama/index.php+12
    date_default_timezone_set(): Timezone ID '' is invalid
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/scheduled-contnet-by-streama/index.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: scheduled content, content, page, streama, timed...

scheduled-contnet-by-streama/index.php 92% from 13 tests

The main PHP file in "Scheduled Content" ver. 2.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("scheduled-contnet-by-streama.php" instead of "index.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
No dangerous file extensions were detected32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192432

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected