89% cc-disable-date

Code Review | CC-Disable-Date

WordPress plugin CC-Disable-Date scored89%from 54 tests.

About plugin

  • Plugin page: cc-disable-date
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 20, 2017
  • Latest release: Dec 20, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: ClearcodeHQ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /690 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by CC-Disable-Date
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.64 ▼0.42
Dashboard /wp-admin3.31 ▲0.0153.27 ▼0.39
Posts /wp-admin/edit.php3.36 ▲0.0152.58 ▼1.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.51 ▼11.56
Media Library /wp-admin/upload.php3.23 ▲0.0137.01 ▲0.46

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for CC-Disable-Date
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.541.76 ▲0.0743.42 ▼0.70
Dashboard /wp-admin2,195 ▲185.55 ▼0.1285.86 ▼9.6039.77 ▼2.34
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0041.69 ▲1.2636.44 ▼1.95
Add New Post /wp-admin/post-new.php6,220 ▲4,69226.18 ▲2.93930.91 ▲271.8358.46 ▲6.13
Media Library /wp-admin/upload.php1,403 ▼04.19 ▲0.00102.83 ▼1.5643.53 ▼3.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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

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)
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: Screenshot #1 (**CC-Disable-Date** - Visit the 'Posts > Edit Post' and select 'Disable' on 'Date' meta box.) image required
The official readme.txt might help

cc-disable-date/plugin.php 77% from 13 tests

"CC-Disable-Date" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("/")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cc-disable-date.php" instead of "plugin.php")
  • Domain Path: Please prefix the domain path with a forward slash character ("//")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected53 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1102631
PO File12222

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.73
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%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png15.51KB6.39KB▼ 58.79%