89% smart-countdown-fx

Code Review | Smart Countdown FX

WordPress plugin Smart Countdown FX scored 89% from 54 tests.

About plugin

  • Plugin page: smart-countdown-fx
  • Plugin version: 1.5.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: May 22, 2015
  • Latest release: Feb 10, 2020
  • Number of updates: 312
  • Update frequency: every 5.5 days
  • Top authors: alex3493 (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

1,000+ active / 37,754 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by Smart Countdown FX
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0437.70 ▼8.71
Dashboard /wp-admin3.32 ▲0.0245.76 ▼4.64
Posts /wp-admin/edit.php3.37 ▲0.0245.36 ▼3.63
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.10 ▼2.52
Media Library /wp-admin/upload.php3.24 ▲0.0237.92 ▲2.65

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

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

Browser metrics Passed 4 tests

Smart Countdown FX: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲16813.73 ▼0.676.89 ▲5.1240.18 ▼4.60
Dashboard /wp-admin2,209 ▲214.87 ▼1.01100.25 ▼14.5939.51 ▼13.30
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0836.72 ▲1.7035.52 ▲0.83
Add New Post /wp-admin/post-new.php1,547 ▲1318.27 ▼4.94598.12 ▼43.2564.74 ▲10.81
Media Library /wp-admin/upload.php1,385 ▼34.22 ▼0.0194.51 ▼7.7841.00 ▼2.59

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

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 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (13 tag instead of maximum 10)
You can take inspiration from this readme.txt

smart-countdown-fx/smartcountdownfx.php 85% from 13 tests

The entry point to "Smart Countdown FX" version 1.5.5 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("smart-countdown-fx.php" instead of "smartcountdownfx.php")

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
No dangerous file extensions were detected7,540 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
PO File169181,4462,783
PHP52383471,546
CSS438681,303
JavaScript101824241,232
XML141818675
HTML1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity114.00
▷ Minimum class complexity74.00
▷ Maximum class complexity154.00
Average method complexity9.65
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes150.00%
▷ Concrete classes150.00%
▷ Final classes00.00%
Methods27
▷ Static methods2281.48%
▷ Public methods2074.07%
▷ Protected methods00.00%
▷ Private methods725.93%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
21 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/ui-bg_glass_100_fdf5ce_1x400.png0.34KB0.16KB▼ 54.02%
admin/images/ui-bg_highlight-soft_75_ffe45c_1x100.png0.32KB0.18KB▼ 42.38%
admin/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
admin/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%
admin/images/ui-bg_diagonals-thick_20_666666_40x40.png0.30KB0.15KB▼ 49.68%