84% character-countdown

Code Review | Character Countdown

WordPress plugin Character Countdown scored84%from 54 tests.

About plugin

  • Plugin page: character-countdown
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.7.4
  • WordPress version: 6.3.1
  • First release: Nov 17, 2014
  • Latest release: Dec 23, 2014
  • Number of updates: 8
  • Update frequency: every 113.4 days
  • Top authors: EnigmaWeb (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active /2,760 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.20MB] [CPU: ▼15.97ms] Passed 4 tests

Analyzing server-side resources used by Character Countdown
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.75 ▼1.85
Dashboard /wp-admin3.11 ▼0.1932.58 ▼20.03
Posts /wp-admin/edit.php3.25 ▼0.1134.27 ▼15.69
Add New Post /wp-admin/post-new.php5.44 ▼0.4572.36 ▼19.48
Media Library /wp-admin/upload.php3.18 ▼0.0530.05 ▼8.68

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Character Countdown
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4914.26 ▼0.191.98 ▲0.2544.22 ▼0.32
Dashboard /wp-admin2,216 ▲395.64 ▼0.0887.27 ▼4.9782.88 ▲36.34
Posts /wp-admin/edit.php2,124 ▲242.03 ▲0.0336.92 ▲2.8932.74 ▼1.96
Add New Post /wp-admin/post-new.php1,559 ▲1418.09 ▼5.32692.50 ▼18.1566.03 ▲3.72
Media Library /wp-admin/upload.php1,421 ▲214.29 ▲0.1794.83 ▼18.0871.26 ▲24.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/character-countdown/index.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: show characters, character count, excerpt character count, excerpt characters, character countdown...

character-countdown/index.php 92% from 13 tests

The main PHP script in "Character Countdown" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("character-countdown.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin145 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12940145

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.48
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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
cc-icon.png3.50KB1.12KB▼ 68.14%