84% easy-countdowner

Code Review | Easy CountDowner

WordPress plugin Easy CountDowner scored84%from 54 tests.

About plugin

  • Plugin page: easy-countdowner
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: Nov 5, 2015
  • Latest release: Apr 11, 2020
  • Number of updates: 45
  • Update frequency: every 36.0 days
  • Top authors: kingrayhan (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

1,000+ active /31,764 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▲0.28ms] Passed 4 tests

An overview of server-side resources used by Easy CountDowner
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.49 ▲1.68
Dashboard /wp-admin3.31 ▲0.0147.90 ▲1.81
Posts /wp-admin/edit.php3.36 ▲0.0145.17 ▲0.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.39 ▼0.73
Media Library /wp-admin/upload.php3.23 ▲0.0132.42 ▲0.02

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Easy CountDowner
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲17513.57 ▼0.608.19 ▲6.4947.88 ▲7.84
Dashboard /wp-admin2,208 ▲195.90 ▲0.99109.39 ▼7.6946.11 ▲5.75
Posts /wp-admin/edit.php2,091 ▲22.05 ▲0.0535.78 ▼5.6734.84 ▲0.74
Add New Post /wp-admin/post-new.php1,539 ▼018.22 ▼4.83603.12 ▼42.2853.97 ▲0.43
Media Library /wp-admin/upload.php1,393 ▲114.23 ▲0.0093.60 ▼4.2640.51 ▼3.68

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

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

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-countdowner/index.php:55

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: These screenshots require images: #5 (CountDowner Demo 3), #6 (CountDowner Demo 4), #7 (CountDowner Demo 5)
You can take inspiration from this readme.txt

easy-countdowner/index.php 92% from 13 tests

The entry point to "Easy CountDowner" version 1.0.8 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-countdowner.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected992 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript211579867
PHP1254897
CSS231428

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin