83% wp-custom-countdown

Code Review | wp custom countdown

WordPress plugin wp custom countdown scored83%from 54 tests.

About plugin

  • Plugin page: wp-custom-countdown
  • Plugin version: 2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.6
  • WordPress version: 6.3.1
  • First release: Mar 2, 2015
  • Latest release: Nov 23, 2016
  • Number of updates: 39
  • Update frequency: every 16.2 days
  • Top authors: bishawjit-das (76.92%)thetimenow (25.64%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /18,428 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: ▼6.08ms] Passed 4 tests

A check of server-side resources used by wp custom countdown
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.87 ▼0.09
Dashboard /wp-admin3.32 ▲0.0246.90 ▼4.96
Posts /wp-admin/edit.php3.37 ▲0.0247.80 ▼4.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.69 ▼13.43
Media Library /wp-admin/upload.php3.24 ▲0.0137.30 ▼1.59

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by wp custom countdown
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲16813.62 ▼1.065.50 ▲3.9436.21 ▼6.97
Dashboard /wp-admin2,208 ▲235.88 ▼0.02109.68 ▲8.8342.29 ▼4.48
Posts /wp-admin/edit.php2,088 ▼42.05 ▲0.0539.52 ▲3.7734.59 ▼1.87
Add New Post /wp-admin/post-new.php1,539 ▲2018.23 ▼4.94621.88 ▼76.2965.40 ▲12.13
Media Library /wp-admin/upload.php1,390 ▲54.14 ▼0.05102.87 ▼5.7243.75 ▼4.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-custom-countdown/wcc-shortcode.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-custom-countdown/wp-custom-countdown.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
These attributes need your attention:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Donate link: Please fix this invalid URI: "#"
You can take inspiration from this readme.txt

wp-custom-countdown/wp-custom-countdown.php 92% from 13 tests

Analyzing the main PHP file in "wp custom countdown" version 2.8
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin276 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
HTML1200138
JavaScript433070
PHP3161750
CSS20818

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.04
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%
Functions6
▷ Named functions6100.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
There were not PNG files found in your plugin