84% devgirl-countdown-clock

Code Review | Devgirl Countdown Clock

WordPress plugin Devgirl Countdown Clock scored84%from 54 tests.

About plugin

  • Plugin page: devgirl-countdown...
  • Plugin version: 2.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 6, 2023
  • Latest release: Mar 16, 2023
  • Number of updates: 37
  • Update frequency: every 1.9 days
  • Top authors: elfynity5 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /916 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.28ms] Passed 4 tests

This is a short check of server-side resources used by Devgirl Countdown Clock
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0242.59 ▲0.80
Dashboard /wp-admin3.33 ▲0.0349.50 ▼7.70
Posts /wp-admin/edit.php3.38 ▲0.0248.59 ▼1.53
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.45 ▼14.64
Media Library /wp-admin/upload.php3.26 ▲0.0235.26 ▼1.24
Devgirl Countdown Clock /wp-admin/options-general.php?page=devgirl-countdown-clock3.2228.91

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Devgirl Countdown Clock
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6314.30 ▼0.152.17 ▼0.0143.55 ▼2.14
Dashboard /wp-admin2,198 ▲215.56 ▼0.1086.85 ▼16.8740.66 ▼5.39
Posts /wp-admin/edit.php2,109 ▲92.03 ▲0.0236.39 ▼1.4434.69 ▼7.80
Add New Post /wp-admin/post-new.php1,549 ▲2323.31 ▲5.70667.68 ▲23.8755.65 ▲9.05
Media Library /wp-admin/upload.php1,409 ▲94.23 ▼0.02100.81 ▲3.0243.07 ▲3.00
Devgirl Countdown Clock /wp-admin/options-general.php?page=devgirl-countdown-clock9492.3022.3729.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • 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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/devgirl-countdown-clock/includes/admin-menu.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/devgirl-countdown-clock/includes/admin-menu.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: countdown timer, countdown clock, event launches, time limit

devgirl-countdown-clock/devgirl-countdown-clock.php Passed 13 tests

"Devgirl Countdown Clock" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
112 characters long description:
The simple countdown clock is used to countdown to a date and time of your choosing using a Wordpress shortcode.

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
Everything looks great! No dangerous files found in this plugin430 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PO File65412156
PHP213332134
CSS2544105
JavaScript112035

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.02
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin