90% hassle-free-date-list

Code Review | Hassle-Free Date List

WordPress plugin Hassle-Free Date List scored90%from 54 tests.

About plugin

  • Plugin page: hassle-free-date-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Jan 5, 2022
  • Latest release: Jul 9, 2022
  • Number of updates: 5
  • Update frequency: every 37.2 days
  • Top authors: freeleaf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /785 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.27MB] [CPU: ▼2.51ms] Passed 4 tests

This is a short check of server-side resources used by Hassle-Free Date List
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2740.09 ▼3.57
Dashboard /wp-admin3.55 ▲0.2545.07 ▼0.22
Posts /wp-admin/edit.php3.67 ▲0.3150.47 ▼0.45
Add New Post /wp-admin/post-new.php6.19 ▲0.3190.31 ▼5.80
Media Library /wp-admin/upload.php3.48 ▲0.2537.80 ▼0.23
Add New /wp-admin/post-new.php?post_type=hfdl_schedule3.5145.95
Dates /wp-admin/edit.php?post_type=hfdl_schedule3.5236.30

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Hassle-Free Date List
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲12313.26 ▼1.052.11 ▼0.2542.65 ▼9.11
Dashboard /wp-admin2,233 ▲425.86 ▲1.00103.42 ▼3.1540.13 ▼5.20
Posts /wp-admin/edit.php2,113 ▲212.19 ▲0.1439.64 ▼0.7135.75 ▲0.11
Add New Post /wp-admin/post-new.php6,613 ▲5,06929.39 ▲10.99931.70 ▲330.2661.92 ▲7.67
Media Library /wp-admin/upload.php1,415 ▲244.18 ▼0.0296.61 ▼10.7640.26 ▼9.56
Add New /wp-admin/post-new.php?post_type=hfdl_schedule1,9372.6354.9863.89
Dates /wp-admin/edit.php?post_type=hfdl_schedule1,0801.9931.1831.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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 smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: times, events, event, schedule, dates

hassle-free-date-list/hassle-free-date-list.php 92% from 13 tests

Analyzing the main PHP file in "Hassle-Free Date List" version 1.0.0
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 300 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,085 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP112496281,289
Sass3783339
JavaScript4177301
CSS3259139
JSON10017

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity19.38
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity3.78
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods51
▷ Static methods35.88%
▷ Public methods4384.31%
▷ Protected methods00.00%
▷ Private methods815.69%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants3
▷ Global constants3100.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 files were detected