84% timer-element-for-elementor

Code Review | Timer Counter Elementor Addons

WordPress plugin Timer Counter Elementor Addons scored84%from 54 tests.

About plugin

  • Plugin page: timer-element-for...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Jul 1, 2020
  • Latest release: Jan 7, 2022
  • Number of updates: 13
  • Update frequency: every 42.7 days
  • Top authors: nayon46 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,084 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Timer Counter Elementor Addons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.58 ▲5.39
Dashboard /wp-admin3.33 ▼0.0250.42 ▼10.67
Posts /wp-admin/edit.php3.38 ▲0.0246.49 ▼6.43
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.06 ▼10.86
Media Library /wp-admin/upload.php3.25 ▲0.0235.96 ▲0.20

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Timer Counter Elementor Addons: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.45 ▲0.071.69 ▼0.0543.14 ▲1.17
Dashboard /wp-admin2,227 ▲384.86 ▼0.09102.74 ▼14.7537.22 ▼5.09
Posts /wp-admin/edit.php2,106 ▲142.05 ▲0.0434.38 ▼0.8334.46 ▲1.37
Add New Post /wp-admin/post-new.php1,551 ▲3223.11 ▼0.30630.75 ▼36.8258.28 ▼18.90
Media Library /wp-admin/upload.php1,406 ▲184.25 ▲0.0898.12 ▼4.8245.15 ▲2.12

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/timer-element-for-elementor/widgets/timer-widget.php:3
    • > PHP Warning
      Unterminated comment starting line 3 in wp-content/plugins/timer-element-for-elementor/index.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/timer-element-for-elementor/timer-counter-elementor-addons.php:16

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: flipclock addonce counter elementorflipclock elementor, counter elementor, clock elementor, counterdowncounter, elementor

timer-element-for-elementor/timer-counter-elementor-addons.php 85% from 13 tests

The main file in "Timer Counter Elementor Addons" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("timer-element-for-elementor.php" instead of "timer-counter-elementor-addons.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin562 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS1817331
PHP358128191
JavaScript21140

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.50
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.39
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods18
▷ Static methods15.56%
▷ Public methods1583.33%
▷ Protected methods316.67%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin