78% ninja-countdown

Code Review | Ninja Countdown | Fastest Countdown Builder ( With Elementor Widget )

WordPress plugin Ninja Countdown | Fastest Countdown Builder ( With Elementor Widget ) scored78%from 54 tests.

About plugin

  • Plugin page: ninja-countdown
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.7.1
  • WordPress version: 6.3.1
  • First release: May 15, 2021
  • Latest release: Jul 5, 2021
  • Number of updates: 6
  • Update frequency: every 8.7 days
  • Top authors: lovelightplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /487 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.01MB] [CPU: ▼10.34ms] Passed 4 tests

Server-side resources used by Ninja Countdown | Fastest Countdown Builder ( With Elementor Widget )
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.55 ▼5.72
Dashboard /wp-admin3.32 ▼0.0247.74 ▼17.71
Posts /wp-admin/edit.php3.37 ▲0.0251.13 ▼1.09
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.22 ▼16.85
Media Library /wp-admin/upload.php3.25 ▲0.0238.99 ▲1.73

Server storage [IO: ▲1.21MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Ninja Countdown | Fastest Countdown Builder ( With Elementor Widget ): an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8314.29 ▼0.341.69 ▲0.0344.67 ▲0.71
Dashboard /wp-admin2,247 ▲705.64 ▲0.0990.06 ▼12.1240.46 ▼4.71
Posts /wp-admin/edit.php2,155 ▲552.01 ▲0.0040.42 ▲2.5436.87 ▲2.51
Add New Post /wp-admin/post-new.php1,568 ▲3723.45 ▲0.29602.90 ▼52.2353.54 ▲0.40
Media Library /wp-admin/upload.php1,452 ▲554.27 ▼0.0399.51 ▼2.5442.06 ▼0.10
All Countdowns /wp-admin/admin.php?page=ninjacountdown#/1,0553.95103.5033.39
Support /wp-admin/admin.php?page=ninjacountdown#/support9833.4988.0835.39

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ninja-countdown/app/Views/Admin/AdminView.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ninja-countdown/app/Views/Frontend/CountdownTimer.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: countdown, elementor, elementor countdown addon, elementor addon, elementor countdown timer widget...

ninja-countdown/ninja-countdown.php 92% from 13 tests

"Ninja Countdown | Fastest Countdown Builder ( With Elementor Widget )" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin997 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP1313699944
CSS27041
JSON1008
JavaScript4014

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.22
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.53
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods42
▷ Static methods37.14%
▷ Public methods3992.86%
▷ Protected methods37.14%
▷ Private methods00.00%
Functions8
▷ Named functions112.50%
▷ Anonymous functions787.50%
Constants6
▷ Global constants6100.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
6 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/countdowns/new_year.png6.19KB6.27KB0.00%
public/images/support/support.png15.43KB0.97KB▼ 93.72%
public/images/support/heart.png17.45KB1.61KB▼ 90.77%
public/images/countdowns/special_offer.png3.82KB3.63KB▼ 4.95%
public/images/support/bug.png16.00KB1.53KB▼ 90.44%