83% vc-countdown-ocoder

Code Review | VC Countdown oCoder Free

WordPress plugin VC Countdown oCoder Free scored 83% from 54 tests.

About plugin

  • Plugin page: vc-countdown-ocoder
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7
  • WordPress version: 6.3.1
  • First release: Mar 7, 2017
  • Latest release: Mar 7, 2017
  • Number of updates: 6
  • Update frequency: every 2.3 days
  • Top authors: trungstormsix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,349 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.14ms] Passed 4 tests

Analyzing server-side resources used by VC Countdown oCoder Free
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.73 ▼13.98
Dashboard /wp-admin3.36 ▲0.0645.61 ▼3.92
Posts /wp-admin/edit.php3.41 ▲0.0645.19 ▼1.60
Add New Post /wp-admin/post-new.php5.94 ▲0.0684.30 ▼9.07
Media Library /wp-admin/upload.php3.29 ▲0.0636.56 ▲0.55

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for VC Countdown oCoder Free
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲18913.59 ▼0.775.79 ▲4.0551.25 ▲6.56
Dashboard /wp-admin2,218 ▲415.76 ▼0.1498.21 ▼15.3539.94 ▼10.93
Posts /wp-admin/edit.php2,100 ▲112.02 ▲0.0634.30 ▼3.9834.93 ▲1.18
Add New Post /wp-admin/post-new.php1,546 ▲2623.15 ▲0.06657.98 ▲20.5155.78 ▼2.98
Media Library /wp-admin/upload.php1,397 ▲94.25 ▲0.1098.09 ▼24.3344.58 ▼5.22

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/vc-countdown-ocoder/vc_extend.php
    • > /wp-content/plugins/vc-countdown-ocoder/admin/params/slider/slider-params.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (scr1.png), #2 (scr2.png)
The official readme.txt might help

vc-countdown-ocoder/vc_extend.php 85% from 13 tests

"VC Countdown oCoder Free" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 225 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("vc-countdown-ocoder.php" instead of "vc_extend.php")

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 detected2,283 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
CSS156022895
PHP117891711
SVG100565
JavaScript41513112

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.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
3 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/countdown.png5.17KB1.18KB▼ 77.07%
screenshot-2.png69.83KB23.96KB▼ 65.69%
screenshot-1.png59.34KB27.89KB▼ 52.99%