89% kledo

Code Review | Kledo

WordPress plugin Kledo scored89%from 54 tests.

About plugin

  • Plugin page: kledo
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.8
  • WordPress version: 6.3.1
  • First release: Aug 31, 2021
  • Latest release: Sep 22, 2022
  • Number of updates: 22
  • Update frequency: every 17.7 days
  • Top authors: oggix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /831 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.00MB] [CPU: ▼5.70ms] Passed 4 tests

Server-side resources used by Kledo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.18 ▼2.34
Dashboard /wp-admin3.31 ▲0.0144.85 ▼6.34
Posts /wp-admin/edit.php3.36 ▲0.0045.85 ▼2.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.59 ▼11.41
Media Library /wp-admin/upload.php3.23 ▲0.0035.55 ▲1.41

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Kledo: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.25 ▼1.154.37 ▲2.6444.37 ▲2.82
Dashboard /wp-admin2,215 ▲245.88 ▲0.93107.31 ▼0.3739.84 ▼1.01
Posts /wp-admin/edit.php2,098 ▲92.01 ▼0.0440.72 ▲2.1538.81 ▲4.92
Add New Post /wp-admin/post-new.php1,542 ▲2823.38 ▲5.85652.99 ▼34.1551.45 ▼20.21
Media Library /wp-admin/upload.php1,397 ▲94.26 ▼0.0596.32 ▼4.2240.62 ▼2.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Requires php: Version format is invalid
The official readme.txt might help

kledo/kledo.php 77% from 13 tests

Analyzing the main PHP file in "Kledo" version 1.1.5
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 162 characters long)
  • Requires at least: The required version number must match the one declared in readme.txt ("4.4" instead of "3.5.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,157 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP215591,8291,740
PO File2107144305
JavaScript1121871
CSS19441

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity8.35
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes210.00%
▷ Concrete classes1890.00%
▷ Final classes15.56%
Methods169
▷ Static methods52.96%
▷ Public methods12674.56%
▷ Protected methods137.69%
▷ Private methods3017.75%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants39
▷ Global constants1230.77%
▷ Class constants2769.23%
▷ Public constants27100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin