84% lightweight-countdown-timers

Code Review | Lightweight Countdown Timers

WordPress plugin Lightweight Countdown Timers scored84%from 54 tests.

About plugin

  • Plugin page: lightweight-count...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jun 14, 2022
  • Latest release: Jun 15, 2022
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: rutgercodes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /188 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.30ms] Passed 4 tests

Analyzing server-side resources used by Lightweight Countdown Timers
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.28 ▼3.58
Dashboard /wp-admin3.34 ▲0.0449.95 ▲1.50
Posts /wp-admin/edit.php3.39 ▲0.0448.48 ▼4.67
Add New Post /wp-admin/post-new.php6.00 ▲0.1187.92 ▼14.46
Media Library /wp-admin/upload.php3.26 ▲0.0440.58 ▲4.00
All timers /wp-admin/edit.php?post_type=lwcd-timer3.3137.65
Add new /wp-admin/post-new.php?post_type=lwcd-timer3.3445.29

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Lightweight Countdown Timers
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.69 ▲0.251.53 ▼0.2240.97 ▼6.89
Dashboard /wp-admin2,222 ▲425.62 ▲0.0990.30 ▼0.1236.53 ▼4.51
Posts /wp-admin/edit.php2,130 ▲271.95 ▼0.0738.91 ▼2.0835.60 ▼3.49
Add New Post /wp-admin/post-new.php1,551 ▲2523.09 ▲0.03659.12 ▲6.7055.51 ▼8.88
Media Library /wp-admin/upload.php1,421 ▲214.19 ▼0.17111.67 ▼2.4046.49 ▼3.13
All timers /wp-admin/edit.php?post_type=lwcd-timer1,1061.9835.4428.29
Add new /wp-admin/post-new.php?post_type=lwcd-timer1,7672.8159.1058.53

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=lwcd-timer
    • > Warning in wp-content/plugins/lightweight-countdown-timers/includes/admin/meta-boxes/views/html-timer-settings.php+39
    array_key_exists() expects parameter 2 to be array, string given

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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
2 plugin tags: timers, countdown

lightweight-countdown-timers/lightweight-countdown-timers.php 92% from 13 tests

"Lightweight Countdown Timers" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin928 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP17252428653
PO File15959150
JavaScript23018110
Sass17014
CSS1011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity6.55
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods35
▷ Static methods1954.29%
▷ Public methods3085.71%
▷ Protected methods12.86%
▷ Private methods411.43%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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