89% smart-countdown-fx-easy-recurring-events

Code Review | Smart Countdown FX Easy Recurring Events

WordPress plugin Smart Countdown FX Easy Recurring Events scored89%from 54 tests.

About plugin

  • Plugin page: smart-countdown-f...
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: May 29, 2015
  • Latest release: Jan 12, 2020
  • Number of updates: 132
  • Update frequency: every 12.8 days
  • Top authors: alex3493 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /8,866 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.02MB] [CPU: ▼6.94ms] Passed 4 tests

Server-side resources used by Smart Countdown FX Easy Recurring Events
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.18 ▼9.52
Dashboard /wp-admin3.33 ▲0.0346.59 ▼2.01
Posts /wp-admin/edit.php3.38 ▲0.0246.78 ▲0.10
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.74 ▼16.33
Media Library /wp-admin/upload.php3.25 ▲0.0236.54 ▲3.17
Easy Recurring Events /wp-admin/options-general.php?page=scd-easy-recurrence-settings3.2332.83

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 10 new options
New WordPress options
scd_easy_recurrence_settings_4
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
scd_easy_recurrence_settings_2
can_compress_scripts
scd_easy_recurrence_settings_3
widget_recent-comments
scd_easy_recurrence_settings_1

Browser metrics Passed 4 tests

A check of browser resources used by Smart Countdown FX Easy Recurring Events
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3513.36 ▼1.014.22 ▲2.2342.90 ▼2.92
Dashboard /wp-admin2,212 ▲244.90 ▼0.02112.61 ▼3.3143.03 ▼8.78
Posts /wp-admin/edit.php2,095 ▲92.05 ▲0.0337.09 ▼1.7433.76 ▲0.08
Add New Post /wp-admin/post-new.php1,533 ▲1322.92 ▼0.15653.19 ▼11.1174.19 ▲12.73
Media Library /wp-admin/upload.php1,394 ▲94.29 ▲0.0996.44 ▼6.1740.17 ▼6.25
Easy Recurring Events /wp-admin/options-general.php?page=scd-easy-recurrence-settings4,9661.8333.7532.93

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: widget, counter, recurring, count down, smart countdown fx...

smart-countdown-fx-easy-recurring-events/smartcdeasyrecurrence.php 85% from 13 tests

This is the main PHP file of "Smart Countdown FX Easy Recurring Events" version 2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("smart-countdown-fx-easy-recurring-events.php" instead of "smartcdeasyrecurrence.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,311 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS133501,142
PHP393106700
PO File2204321400
JavaScript151469

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity47.50
▷ Minimum class complexity22.00
▷ Maximum class complexity73.00
Average method complexity5.23
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods22
▷ Static methods1568.18%
▷ Public methods1359.09%
▷ Protected methods00.00%
▷ Private methods940.91%
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

PNG files should be compressed to save space and minimize bandwidth usage
19 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
admin/images/ui-icons_228ef1_256x240.png4.44KB4.17KB▼ 6.02%
admin/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%
admin/images/ui-bg_highlight-soft_75_ffe45c_1x100.png0.32KB0.18KB▼ 42.38%
admin/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%