90% content-visibility-date-and-time

Code Review | Content Visibility Date and Time

WordPress plugin Content Visibility Date and Time scored90%from 54 tests.

About plugin

  • Plugin page: content-visibilit...
  • Plugin version: 0.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 23, 2021
  • Latest release: Dec 13, 2022
  • Number of updates: 5
  • Update frequency: every 134.4 days
  • Top authors: iamfriendly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,645 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.68ms] Passed 4 tests

Server-side resources used by Content Visibility Date and Time
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0251.23 ▲1.74
Dashboard /wp-admin3.33 ▼0.0250.42 ▼15.21
Posts /wp-admin/edit.php3.38 ▲0.0248.49 ▼5.39
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.52 ▼7.84
Media Library /wp-admin/upload.php3.25 ▲0.0242.05 ▲8.70

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Content Visibility Date and Time
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.16 ▼0.472.02 ▲0.1844.13 ▲1.98
Dashboard /wp-admin2,189 ▲125.56 ▲0.0287.17 ▼16.2140.89 ▼2.90
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0238.83 ▼0.5834.48 ▼5.29
Add New Post /wp-admin/post-new.php1,526 ▼323.33 ▲0.19621.78 ▼68.5657.89 ▼7.83
Media Library /wp-admin/upload.php1,397 ▲34.20 ▲0.03104.33 ▼9.5944.52 ▼0.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 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
6 plugin tags: visibility, block, contentvisibility, date, time...

content-visibility-date-and-time/content-visibility-date-and-time.php Passed 13 tests

This is the main PHP file of "Content Visibility Date and Time" version 0.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
79 characters long description:
[Content Visibility Add-On] Schedule showing or hiding specific content blocks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected78 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3418076
CSS2101
JavaScript1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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
Namespaces1
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 Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin