84% wordsearch-clock

Code Review | Wordsearch clock

WordPress plugin Wordsearch clock scored84%from 54 tests.

About plugin

  • Plugin page: wordsearch-clock
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 23, 2015
  • Latest release: Dec 1, 2015
  • Number of updates: 8
  • Update frequency: every 1.0 days
  • Top authors: emilkhatib (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /579 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Wordsearch clock
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.29 ▼4.76
Dashboard /wp-admin3.32 ▼0.0348.79 ▼14.86
Posts /wp-admin/edit.php3.37 ▲0.0151.59 ▲0.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.70 ▼26.78
Media Library /wp-admin/upload.php3.24 ▲0.0134.09 ▼7.70

Server storage [IO: ▲0.01MB] [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
can_compress_scripts
widget_theysaidso_widget
widget_wsc_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Wordsearch clock: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.28 ▼0.342.28 ▲0.5141.03 ▼0.97
Dashboard /wp-admin2,195 ▲215.54 ▲0.0184.74 ▼10.4039.15 ▼1.88
Posts /wp-admin/edit.php2,103 ▲32.02 ▼0.0639.90 ▲3.0034.44 ▲1.59
Add New Post /wp-admin/post-new.php1,526 ▼023.62 ▲0.40622.70 ▼55.2645.96 ▼7.52
Media Library /wp-admin/upload.php1,394 ▼34.19 ▲0.02101.17 ▼14.3044.48 ▼4.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_wsc_widget
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
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 plugin_dir_url() in wp-content/plugins/wordsearch-clock/wordsearch-clock.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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
Attributes that require attention:
  • Requires at least: Invalid plugin version format
The official readme.txt is a good inspiration

wordsearch-clock/wordsearch-clock.php Passed 13 tests

"Wordsearch clock" version 0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
42 characters long description:
This widget shows a wordsearch style clock

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
No dangerous file extensions were detected217 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12840177
CSS14040

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin