84% simple-certain-time-to-show-content

Code Review | Simple Certain Time to Show Content

WordPress plugin Simple Certain Time to Show Content scored84%from 54 tests.

About plugin

  • Plugin page: simple-certain-ti...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 24, 2017
  • Latest release: Sep 13, 2023
  • Number of updates: 9
  • Update frequency: every 259.2 days
  • Top authors: eemitch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /952 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.06ms] Passed 4 tests

This is a short check of server-side resources used by Simple Certain Time to Show Content
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0547.40 ▲8.66
Dashboard /wp-admin3.36 ▲0.0251.71 ▼14.64
Posts /wp-admin/edit.php3.41 ▲0.0651.45 ▼3.32
Add New Post /wp-admin/post-new.php5.95 ▲0.0788.25 ▼7.32
Media Library /wp-admin/upload.php3.28 ▲0.0533.96 ▲1.06

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Simple Certain Time to Show Content
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7914.35 ▲0.232.02 ▲0.1137.43 ▼4.32
Dashboard /wp-admin2,224 ▲445.60 ▼0.0786.29 ▼5.7739.75 ▼3.22
Posts /wp-admin/edit.php2,129 ▲262.01 ▼0.0238.89 ▼2.6737.48 ▼1.38
Add New Post /wp-admin/post-new.php1,549 ▲1223.27 ▲5.01652.88 ▲19.7251.88 ▼23.95
Media Library /wp-admin/upload.php1,429 ▲264.28 ▼0.0099.22 ▼2.3443.58 ▲0.30

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

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 6× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/simple-certain-time-to-show-content/support/ee-donations.php
    • > /wp-content/plugins/simple-certain-time-to-show-content/support/ee-support-functions.php
    • > /wp-content/plugins/simple-certain-time-to-show-content/simple-certain-time-to-show-content.php
    • > /wp-content/plugins/simple-certain-time-to-show-content/support/ee-plugin-credits.php
    • > /wp-content/plugins/simple-certain-time-to-show-content/ee-plugin-instructions.php
    • > /wp-content/plugins/simple-certain-time-to-show-content/support/ee-plugin-support.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Requires at least: Invalid plugin version format
Please take inspiration from this readme.txt

simple-certain-time-to-show-content/simple-certain-time-to-show-content.php 92% from 13 tests

The entry point to "Simple Certain Time to Show Content" version 1.2.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 213 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin5,223 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript63431572,511
PO File5255285832
CSS46352800
PHP6276108426
HTML1620329
Markdown1810215
JSON30077
TypeScript1311633

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions10
▷ Named functions10100.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
4 PNG files occupy 0.21MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png182.59KB47.13KB▼ 74.19%
timepicker/lib/screenshot.png4.64KB4.74KB0.00%
support/images/ee-show-support.png11.08KB5.79KB▼ 47.75%
timepicker/lib/glyphicons-halflings.png13.50KB10.35KB▼ 23.34%