89% vc-countdown-timer

Code Review | VC Countdown Timer

WordPress plugin VC Countdown Timer scored89%from 54 tests.

About plugin

  • Plugin page: vc-countdown-timer
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.7
  • WordPress version: 6.3.1
  • First release: Sep 19, 2015
  • Latest release: Aug 2, 2018
  • Number of updates: 8
  • Update frequency: every 131.0 days
  • Top authors: mmaumio (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

200+ active /7,482 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.29ms] Passed 4 tests

Analyzing server-side resources used by VC Countdown Timer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.90 ▼5.84
Dashboard /wp-admin3.32 ▲0.0248.70 ▼18.07
Posts /wp-admin/edit.php3.38 ▲0.0248.18 ▼1.99
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.24 ▼7.24
Media Library /wp-admin/upload.php3.25 ▲0.0239.83 ▲0.12

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

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

Browser metrics Passed 4 tests

Checking browser requirements for VC Countdown Timer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲16414.10 ▲0.085.37 ▲3.6339.03 ▼5.44
Dashboard /wp-admin2,206 ▲184.78 ▼1.08106.78 ▼10.4239.68 ▼5.72
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0539.46 ▼0.4737.63 ▼0.01
Add New Post /wp-admin/post-new.php1,533 ▼023.27 ▼0.16644.73 ▼54.5151.59 ▼18.19
Media Library /wp-admin/upload.php1,382 ▼64.20 ▼0.04101.23 ▼15.6043.28 ▼5.40

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 detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: coming-soon, visual-composer, vc-countdown, countdown, timer

vc-countdown-timer/vc-countdown.php 85% from 13 tests

"VC Countdown Timer" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vc-countdown-timer.php" instead of "vc-countdown.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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
Success! There were no dangerous files found in this plugin334 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP32637156
JavaScript23625136
CSS17542

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin