10% analog-clock-wp-7

Code Review | Analog Clock WP-7

WordPress plugin Analog Clock WP-7 scored 10% from 54 tests.

About plugin

  • Plugin page: analog-clock-wp-7
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Mar 24, 2015
  • Latest release: Mar 24, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: Style-7 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 4,839 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/analog-clock-wp-7/analog_clock_wp-7.php+66
    Function create_function() is deprecated

Server metrics [RAM: ▼1.91MB] [CPU: ▼52.82ms] Passed 4 tests

Server-side resources used by Analog Clock WP-7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.17 ▼40.01
Dashboard /wp-admin2.09 ▼1.215.94 ▼39.04
Posts /wp-admin/edit.php2.09 ▼1.268.16 ▼38.46
Add New Post /wp-admin/post-new.php2.09 ▼3.795.94 ▼93.78
Media Library /wp-admin/upload.php2.09 ▼1.146.12 ▼28.33

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Analog Clock WP-7
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.28 ▼1.091.87 ▼0.2037.10 ▼7.84
Dashboard /wp-admin2,209 ▲235.87 ▲0.9096.26 ▼18.0639.00 ▼0.96
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0340.78 ▲5.1035.45 ▲0.62
Add New Post /wp-admin/post-new.php1,533 ▼323.43 ▲0.25644.92 ▲41.8650.54 ▲2.52
Media Library /wp-admin/upload.php1,385 ▼04.30 ▲0.11103.49 ▼6.6144.08 ▼1.88

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/analog-clock-wp-7/analog_clock_wp-7.php+66
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_analog_clock_wp7
    • theysaidso_admin_options

Smoke tests 75% 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 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/analog-clock-wp-7/analog_clock_wp-7.php:13

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Clock appereance.) image required
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

analog-clock-wp-7/analog_clock_wp-7.php 92% from 13 tests

The primary PHP file in "Analog Clock WP-7" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("analog-clock-wp-7.php" instead of "analog_clock_wp-7.php")

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 detected50 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171050

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png14.78KB8.54KB▼ 42.17%