89% kicklander

Code Review | Kicklander

WordPress plugin Kicklander scored89%from 54 tests.

About plugin

  • Plugin page: kicklander
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.2
  • WordPress version: 6.3.1
  • First release: Apr 25, 2023
  • Latest release: May 3, 2023
  • Number of updates: 7
  • Update frequency: every 1.1 days
  • Top authors: kicklander (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /93 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.61ms] Passed 4 tests

This is a short check of server-side resources used by Kicklander
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.19 ▲4.72
Dashboard /wp-admin3.31 ▲0.0145.72 ▼2.66
Posts /wp-admin/edit.php3.37 ▲0.0146.73 ▼3.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.88 ▼16.92
Media Library /wp-admin/upload.php3.24 ▲0.0140.23 ▲8.16

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Kicklander: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲8213.29 ▼1.271.69 ▲0.0243.12 ▼4.36
Dashboard /wp-admin2,226 ▲474.90 ▼0.9296.61 ▼12.1066.13 ▲22.28
Posts /wp-admin/edit.php2,106 ▲172.03 ▲0.0239.30 ▼2.1236.91 ▲1.32
Add New Post /wp-admin/post-new.php1,682 ▲16322.05 ▼1.00696.36 ▲42.7160.42 ▼9.03
Media Library /wp-admin/upload.php1,405 ▲174.25 ▲0.06103.91 ▲7.7144.92 ▲2.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === kicklander === )
The official readme.txt is a good inspiration

kicklander/kicklander.php 92% from 13 tests

"Kicklander" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin136 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP662330125
SVG10010
CSS1031

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods12
▷ Static methods18.33%
▷ Public methods975.00%
▷ Protected methods00.00%
▷ Private methods325.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
core/includes/assets/images/favicon.png0.44KB0.50KB0.00%