84% easy-timer

Code Review | Easy Timer

WordPress plugin Easy Timer scored84%from 54 tests.

About plugin

  • Plugin page: easy-timer
  • Plugin version: 4.2.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 4, 2010
  • Latest release: Nov 13, 2022
  • Number of updates: 815
  • Update frequency: every 5.6 days
  • Top authors: Kleor (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

2,000+ active /124,542 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.93ms] Passed 4 tests

This is a short check of server-side resources used by Easy Timer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0843.24 ▲4.39
Dashboard /wp-admin3.38 ▲0.0849.04 ▼1.23
Posts /wp-admin/edit.php3.50 ▲0.1450.10 ▼5.05
Add New Post /wp-admin/post-new.php5.97 ▲0.0886.62 ▼9.51
Media Library /wp-admin/upload.php3.31 ▲0.0838.64 ▲4.06
Easy Timer /wp-admin/options-general.php?page=easy-timer3.3131.67

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
easy_timer
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Timer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.32 ▼0.071.70 ▲0.0742.24 ▲0.84
Dashboard /wp-admin2,196 ▲195.54 ▼0.0584.36 ▼4.2736.47 ▼9.52
Posts /wp-admin/edit.php2,104 ▲41.99 ▲0.0134.14 ▼2.6937.51 ▲1.35
Add New Post /wp-admin/post-new.php6,250 ▲4,71321.00 ▲2.73871.28 ▲222.2369.64 ▼1.16
Media Library /wp-admin/upload.php1,404 ▲74.19 ▼0.0399.19 ▼1.8544.11 ▲2.47
Easy Timer /wp-admin/options-general.php?page=easy-timer9362.0024.9729.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • easy_timer
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/easy-timer/includes/index.php
    • > /wp-content/plugins/easy-timer/languages/index.php
    • > /wp-content/plugins/easy-timer/libraries/index.php
    • > /wp-content/plugins/easy-timer/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention: The official readme.txt is a good inspiration

easy-timer/easy-timer.php 92% from 13 tests

The principal PHP file in "Easy Timer" v. 4.2.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,940 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP284124721,543
JavaScript1720242
PO File1630155

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions66
▷ Named functions6293.94%
▷ Anonymous functions46.06%
Constants9
▷ Global constants9100.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