84% scheduled-contents-shortcode

Code Review | Scheduled Contents Shortcode

WordPress plugin Scheduled Contents Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: scheduled-content...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 16, 2017
  • Latest release: Aug 16, 2017
  • Number of updates: 2
  • Update frequency: every 3.5 days
  • Top authors: Toro_Unit (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /1,669 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼5.60ms] Passed 4 tests

Analyzing server-side resources used by Scheduled Contents Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.93 ▼1.09
Dashboard /wp-admin3.31 ▼0.0345.68 ▼10.71
Posts /wp-admin/edit.php3.36 ▲0.0146.96 ▲4.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.71 ▼8.42
Media Library /wp-admin/upload.php3.23 ▲0.0135.02 ▼2.18

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Scheduled Contents Shortcode
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.27 ▼1.381.66 ▲0.0341.45 ▼0.36
Dashboard /wp-admin2,211 ▲264.85 ▼0.2998.97 ▼3.6239.02 ▼2.22
Posts /wp-admin/edit.php2,091 ▲22.00 ▼0.0639.82 ▲2.7335.07 ▼0.66
Add New Post /wp-admin/post-new.php1,539 ▲618.45 ▼4.94614.03 ▼39.0558.35 ▲5.74
Media Library /wp-admin/upload.php1,390 ▲24.26 ▲0.0693.85 ▼23.3442.86 ▼4.79

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% 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)
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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Scheduled_Contents_Shortcode\\add_action() in wp-content/plugins/scheduled-contents-shortcode/scheduled-contents-shortcode.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: shortcode, schedule

scheduled-contents-shortcode/scheduled-contents-shortcode.php 92% from 13 tests

This is the main PHP file of "Scheduled Contents Shortcode" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin133 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP439115121
CSS12012

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.33
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.31
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin