78% wall-clocks

Code Review | Wall Clock

WordPress plugin Wall Clock scored78%from 54 tests.

About plugin

  • Plugin page: wall-clocks
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.9.8
  • WordPress version: 6.3.1
  • First release: Mar 10, 2017
  • Latest release: Sep 29, 2018
  • Number of updates: 13
  • Update frequency: every 43.2 days
  • Top authors: kolka (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /1,972 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
Installer ran successfully

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

Analyzing server-side resources used by Wall Clock
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.58 ▲2.78
Dashboard /wp-admin3.32 ▼0.0345.84 ▼12.54
Posts /wp-admin/edit.php3.37 ▲0.0143.79 ▲0.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.95 ▼10.89
Media Library /wp-admin/upload.php3.24 ▲0.0135.02 ▼0.12

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Wall Clock
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲16313.95 ▼0.409.11 ▲7.3343.64 ▲2.89
Dashboard /wp-admin2,225 ▲344.85 ▼0.0697.76 ▼5.2240.15 ▼2.89
Posts /wp-admin/edit.php2,108 ▲192.00 ▼0.0136.33 ▲1.0634.31 ▼2.46
Add New Post /wp-admin/post-new.php1,560 ▲4118.30 ▼4.92614.76 ▲42.4264.06 ▲9.85
Media Library /wp-admin/upload.php1,404 ▲164.24 ▲0.03101.96 ▲5.1143.91 ▲1.46

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wall-clocks/wall-clock.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function myprefix_get_theme_option() in wp-content/plugins/wall-clocks/option-data.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: countdown, clock, wall clock

wall-clocks/wall-clock.php 92% from 13 tests

The main PHP file in "Wall Clock" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wall-clocks.php" instead of "wall-clock.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin724 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript310863492
PHP38378184
CSS11048

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods685.71%
▷ Public methods7100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
23 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/jcgmt-3-clock_sec.png1.77KB0.76KB▼ 57.03%
images/jcgmt-3-clock_min.png1.20KB0.22KB▼ 81.46%
images/favicon.png7.65KB8.74KB0.00%
images/jcgmt-1-clock_face.png7.64KB4.56KB▼ 40.39%
images/jcgmt-clock_label.png1.18KB0.51KB▼ 56.58%