84% simple-countdown-flip-timer-for-wp

Code Review | Simple Countdown Flip Timer for WP

WordPress plugin Simple Countdown Flip Timer for WP scored84%from 54 tests.

About plugin

  • Plugin page: simple-countdown-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.5
  • WordPress version: 6.3.1
  • First release: Oct 17, 2020
  • Latest release: Oct 17, 2020
  • Number of updates: 7
  • Update frequency: every 5.4 days
  • Top authors: bonddesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,594 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.03ms] Passed 4 tests

This is a short check of server-side resources used by Simple Countdown Flip Timer for WP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.34 ▼3.92
Dashboard /wp-admin3.31 ▼0.0351.37 ▼12.96
Posts /wp-admin/edit.php3.36 ▲0.0152.66 ▼16.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.05 ▼2.58
Media Library /wp-admin/upload.php3.23 ▲0.0137.60 ▲1.18

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Simple Countdown Flip Timer for WP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼0.821.74 ▼0.1542.53 ▼0.98
Dashboard /wp-admin2,209 ▲214.80 ▼0.11105.54 ▼16.7538.98 ▼13.17
Posts /wp-admin/edit.php2,092 ▼01.99 ▲0.0140.60 ▼2.5835.40 ▼3.14
Add New Post /wp-admin/post-new.php1,534 ▲623.19 ▲4.93641.55 ▼5.2059.94 ▲9.62
Media Library /wp-admin/upload.php1,388 ▲34.26 ▲0.06104.13 ▼0.0944.12 ▼1.55

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • 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 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-countdown-flip-timer-for-wp/index.php:63

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: countdown, timer

simple-countdown-flip-timer-for-wp/index.php 92% from 13 tests

This is the main PHP file of "Simple Countdown Flip Timer for WP" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-countdown-flip-timer-for-wp.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected481 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS1857424
PHP12855
JavaScript1011
Markdown1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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