84% ramadan-countdown

Code Review | Ramadan Countdown

WordPress plugin Ramadan Countdown scored84%from 54 tests.

About plugin

  • Plugin page: ramadan-countdown
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.7.1
  • WordPress version: 6.3.1
  • First release: May 9, 2020
  • Latest release: May 1, 2021
  • Number of updates: 11
  • Update frequency: every 32.5 days
  • Top authors: amdad121 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /711 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.66ms] Passed 4 tests

An overview of server-side resources used by Ramadan Countdown
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.94 ▼5.31
Dashboard /wp-admin3.34 ▲0.0348.67 ▼1.57
Posts /wp-admin/edit.php3.39 ▲0.0350.06 ▲0.18
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.62 ▼11.94
Media Library /wp-admin/upload.php3.26 ▲0.0337.35 ▲2.79

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_rdcd_timetable
widget_recent-comments
widget_rdcd_countdown
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ramadan Countdown
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.30 ▼1.381.68 ▼0.3743.80 ▼5.11
Dashboard /wp-admin2,206 ▲184.84 ▼0.09107.83 ▼1.8541.54 ▼0.21
Posts /wp-admin/edit.php2,089 ▼32.00 ▲0.0340.49 ▼2.8535.34 ▼0.27
Add New Post /wp-admin/post-new.php1,514 ▼517.41 ▼5.88692.79 ▲61.9066.79 ▲16.67
Media Library /wp-admin/upload.php1,382 ▼64.23 ▼0.0498.00 ▼6.4242.30 ▼7.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_rdcd_countdown
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_rdcd_timetable
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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
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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ramadan-countdown/ramadan-countdown.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: countdown, timetable, seheri time, ramadan, iftar time

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

The primary PHP file in "Ramadan Countdown" version 2.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.7.1" instead of "5.6")

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
There were no executable files found in this plugin291 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP22125120
JavaScript22512109
Sass11061
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 images were found in this plugin