90% schedule-content-block

Code Review | Schedule Content Block

WordPress plugin Schedule Content Block scored90%from 54 tests.

About plugin

  • Plugin page: schedule-content-...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2019
  • Latest release: Feb 12, 2023
  • Number of updates: 10
  • Update frequency: every 145.9 days
  • Top authors: goiblas (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /4,119 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.87ms] Passed 4 tests

Server-side resources used by Schedule Content Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.93 ▼6.80
Dashboard /wp-admin3.32 ▲0.0252.23 ▲0.70
Posts /wp-admin/edit.php3.37 ▲0.0249.21 ▼1.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.83 ▼3.05
Media Library /wp-admin/upload.php3.24 ▲0.0240.06 ▼0.21

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Schedule Content Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.75 ▲0.172.13 ▲0.2644.49 ▼2.14
Dashboard /wp-admin2,198 ▲245.66 ▼0.1286.93 ▼20.0241.84 ▼11.21
Posts /wp-admin/edit.php2,097 ▼32.06 ▲0.0537.95 ▲0.3936.17 ▲0.82
Add New Post /wp-admin/post-new.php6,364 ▲4,81927.58 ▲4.39897.22 ▲195.7564.85 ▲9.68
Media Library /wp-admin/upload.php1,400 ▲34.31 ▲0.1096.10 ▼22.9442.67 ▼6.03

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

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 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
3 plugin tags: contents, schedule, blocks

schedule-content-block/schedule-content-block.php Passed 13 tests

The principal PHP file in "Schedule Content Block" v. 2.0.1 is loaded by WordPress automatically on each request
39 characters long description:
Show or hide your content when you want

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected100 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2182190
CSS1006
JavaScript1042
SVG2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.55MB with 0.19MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
plugin-assets/screenshot-1.png564.15KB171.46KB▼ 69.61%
plugin-assets/icon-128x128.png2.08KB2.07KB0.28%