90% timed-content-show-or-hide

Code Review | Timed content show or hide

WordPress plugin Timed content show or hide scored90%from 54 tests.

About plugin

  • Plugin page: timed-content-sho...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Nov 20, 2015
  • Latest release: Nov 20, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: tomek00 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,011 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Timed content show or hide
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.90 ▼3.57
Dashboard /wp-admin3.31 ▲0.0153.84 ▲2.46
Posts /wp-admin/edit.php3.36 ▲0.0051.64 ▼0.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.38 ▼9.50
Media Library /wp-admin/upload.php3.23 ▲0.0038.15 ▲3.39

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Timed content show or hide: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.73 ▲0.371.88 ▲0.0743.41 ▲0.17
Dashboard /wp-admin2,198 ▲245.71 ▲0.0483.17 ▼19.3937.54 ▼7.23
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0341.52 ▲7.2935.97 ▲1.01
Add New Post /wp-admin/post-new.php1,526 ▼023.19 ▼0.41679.36 ▼29.4154.06 ▼5.84
Media Library /wp-admin/upload.php1,403 ▼04.34 ▲0.13108.25 ▲5.0050.49 ▲7.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: page, content, user, shortcode, post

timed-content-show-or-hide/timed content show or hide.php 92% from 13 tests

Analyzing the main PHP file in "Timed content show or hide" version 1.0
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("timed-content-show-or-hide.php" instead of "timed content show or hide.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12713

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin