84% topbar-countdown

Code Review | Topbar Countdown

WordPress plugin Topbar Countdown scored84%from 54 tests.

About plugin

  • Plugin page: topbar-countdown
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.5-4.9.5
  • WordPress version: 6.3.1
  • First release: Jul 11, 2018
  • Latest release: Jul 11, 2018
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: pressmaximum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,853 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
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.22ms] Passed 4 tests

A check of server-side resources used by Topbar Countdown
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0837.56 ▼2.81
Dashboard /wp-admin3.38 ▲0.0844.26 ▼2.60
Posts /wp-admin/edit.php3.43 ▲0.0845.75 ▼2.69
Add New Post /wp-admin/post-new.php5.96 ▲0.0877.89 ▼16.77
Media Library /wp-admin/upload.php3.30 ▲0.0835.57 ▼2.27

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Topbar Countdown
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.66 ▼0.851.71 ▼0.1238.11 ▼2.50
Dashboard /wp-admin2,209 ▲214.87 ▼1.03100.36 ▼2.1541.78 ▼5.26
Posts /wp-admin/edit.php2,092 ▼02.03 ▼0.0240.74 ▲1.7035.88 ▲1.59
Add New Post /wp-admin/post-new.php1,542 ▲918.10 ▼5.02599.35 ▼22.7147.03 ▼1.28
Media Library /wp-admin/upload.php1,385 ▼34.25 ▲0.08100.25 ▼12.6943.67 ▼3.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/topbar-countdown/topbar-countdown.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: options, settings, countdown

topbar-countdown/topbar-countdown.php Passed 13 tests

The main PHP script in "Topbar Countdown" version 0.0.1 is automatically included on every request by WordPress
74 characters long description:
Add a banner on the top of screen with countdown clock and custom message.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin672 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP113512512
CSS1201160

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected