83% wp-binary-clock

Code Review | WP Binary Clock

WordPress plugin WP Binary Clock scored 83% from 54 tests.

About plugin

  • Plugin page: wp-binary-clock
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.6
  • WordPress version: 6.3.1
  • First release: Jul 15, 2016
  • Latest release: Jul 16, 2016
  • Number of updates: 10
  • Update frequency: every 3.3 days
  • Top authors: GripsArt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 521 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

A check of server-side resources used by WP Binary Clock
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.67 ▼5.81
Dashboard /wp-admin3.31 ▲0.0046.58 ▼1.92
Posts /wp-admin/edit.php3.36 ▲0.0050.88 ▲2.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.48 ▼0.88
Media Library /wp-admin/upload.php3.23 ▲0.0035.86 ▲1.27

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Binary Clock
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.71 ▼0.911.71 ▼0.6241.56 ▼6.21
Dashboard /wp-admin2,206 ▲155.79 ▲0.8993.64 ▼10.1037.90 ▼2.51
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0439.18 ▼1.4035.40 ▼1.01
Add New Post /wp-admin/post-new.php1,533 ▲1323.29 ▲0.16671.67 ▲50.1453.79 ▼10.13
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0196.42 ▼0.5243.18 ▲0.15

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 return non-empty strings:
    • > /wp-content/plugins/wp-binary-clock/main.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention: The official readme.txt might help

wp-binary-clock/main.php 85% from 13 tests

The main PHP file in "WP Binary Clock" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-binary-clock.php" instead of "main.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

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
Everything looks great! No dangerous files found in this plugin41 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12024
PHP101715
CSS1002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin