90% temporarily-hidden-content

Code Review | Temporarily Hidden Content

WordPress plugin Temporarily Hidden Content scored90%from 54 tests.

About plugin

  • Plugin page: temporarily-hidde...
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.1
  • WordPress version: 6.3.1
  • First release: May 28, 2020
  • Latest release: Jul 27, 2022
  • Number of updates: 21
  • Update frequency: every 37.6 days
  • Top authors: codents (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

70+ active /1,321 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼0.69ms] Passed 4 tests

An overview of server-side resources used by Temporarily Hidden Content
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1141.72 ▼5.01
Dashboard /wp-admin3.42 ▲0.1149.22 ▼1.36
Posts /wp-admin/edit.php3.53 ▲0.1748.98 ▲2.01
Add New Post /wp-admin/post-new.php6.02 ▲0.1398.48 ▲8.74
Media Library /wp-admin/upload.php3.34 ▲0.1136.35 ▲1.61
Temporarily Hidden Content /wp-admin/options-general.php?page=temporarily-hidden-content3.3734.34

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Temporarily Hidden Content
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲12613.70 ▼0.705.96 ▲3.6744.01 ▼4.23
Dashboard /wp-admin2,214 ▲295.86 ▼0.02102.31 ▼17.6440.58 ▼2.95
Posts /wp-admin/edit.php2,100 ▲82.10 ▲0.1142.08 ▲5.1732.93 ▼0.00
Add New Post /wp-admin/post-new.php1,533 ▼018.12 ▼5.22620.79 ▼78.3849.69 ▼9.53
Media Library /wp-admin/upload.php1,390 ▲54.28 ▲0.0799.68 ▼7.9040.08 ▼3.18
Temporarily Hidden Content /wp-admin/options-general.php?page=temporarily-hidden-content9001.7626.0529.92

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • version
    • theysaidso_admin_options
    • default_color
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: gutenberg, blocks, pages, entries, seo...

temporarily-hidden-content/temporarily-hidden-content.php Passed 13 tests

This is the main PHP file of "Temporarily Hidden Content" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
41 characters long description:
Hide or show content until specific date.

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
Everything looks great! No dangerous files found in this plugin946 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP108126504
CSS4591273
JavaScript4110169

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity8.57
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.02
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods51
▷ Static methods00.00%
▷ Public methods3568.63%
▷ Protected methods00.00%
▷ Private methods1631.37%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png14.12KB7.47KB▼ 47.07%