78% creatrix-countdown

Code Review | Creatrix Countdown

WordPress plugin Creatrix Countdown scored78%from 54 tests.

About plugin

  • Plugin page: creatrix-countdown
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Nov 17, 2021
  • Latest release: Nov 26, 2021
  • Number of updates: 5
  • Update frequency: every 1.8 days
  • Top authors: mrcreatrix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /371 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Creatrix Countdown
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0636.56 ▼4.67
Dashboard /wp-admin3.36 ▲0.0551.24 ▲0.55
Posts /wp-admin/edit.php3.47 ▲0.1148.00 ▼3.52
Add New Post /wp-admin/post-new.php5.96 ▲0.0787.95 ▼13.98
Media Library /wp-admin/upload.php3.28 ▲0.0537.45 ▼0.31

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Creatrix Countdown
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,882 ▲12113.40 ▼0.938.21 ▲6.4044.04 ▲1.12
Dashboard /wp-admin2,199 ▲215.59 ▼0.1389.80 ▼18.2840.02 ▼5.92
Posts /wp-admin/edit.php2,104 ▲12.02 ▲0.0438.76 ▼1.2235.76 ▼3.84
Add New Post /wp-admin/post-new.php1,530 ▲323.06 ▲0.00665.57 ▼47.6662.49 ▼9.73
Media Library /wp-admin/upload.php1,401 ▼24.22 ▲0.0599.46 ▼1.6941.84 ▼2.29

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/creatrix-countdown/admin/partials/creatrix-admin-display.php
    • > /wp-content/plugins/creatrix-countdown/public/partials/creatrix-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/creatrix-countdown/includes/Elementor/init.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Donate link: Invalid URI ("www.balatechnology.wordpress.com")
You can look at the official readme.txt

creatrix-countdown/creatrix.php 85% from 13 tests

The primary PHP file in "Creatrix Countdown" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("creatrix-countdown.php" instead of "creatrix.php")
  • 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 an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected692 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP15190536635
CSS341029
JavaScript586228

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2275.86%
▷ Protected methods26.90%
▷ Private methods517.24%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected