84% clocksky

Code Review | ClockPms

WordPress plugin ClockPms scored84%from 54 tests.

About plugin

  • Plugin page: clocksky
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Jun 12, 2014
  • Latest release: Jun 12, 2014
  • Number of updates: 7
  • Update frequency: every 31.9 days
  • Top authors: clock-software (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

Analyzing server-side resources used by ClockPms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.58 ▲4.40
Dashboard /wp-admin3.31 ▲0.0144.84 ▼0.37
Posts /wp-admin/edit.php3.36 ▲0.0047.38 ▲4.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.55 ▼2.92
Media Library /wp-admin/upload.php3.24 ▲0.0036.96 ▲3.18

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for ClockPms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.62 ▼0.684.52 ▲2.8743.35 ▲4.05
Dashboard /wp-admin2,209 ▲214.83 ▼1.07108.84 ▼5.3139.10 ▼5.47
Posts /wp-admin/edit.php2,092 ▲62.00 ▼0.0539.94 ▲0.1738.44 ▲3.73
Add New Post /wp-admin/post-new.php1,514 ▼2817.49 ▼0.84683.75 ▲59.1558.03 ▲0.96
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.01109.15 ▲9.9749.15 ▲7.06

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

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
Everything seems fine, however 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
Almost there! Just 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_shortcode() in wp-content/plugins/clocksky/clocksky.php:29

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)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === clocksky === )
The official readme.txt might help

clocksky/clocksky.php Passed 13 tests

The main file in "ClockPms" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
123 characters long description:
[clockpms uri=https://sky-eu1.clock-software.com/1040/728 {mode=base|products|calendar} {width=...} {height=...}] shortcode

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13919

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin