89% lead-to-clio

Code Review | Lead to Clio

WordPress plugin Lead to Clio scored89%from 54 tests.

About plugin

  • Plugin page: lead-to-clio
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0+
  • WordPress version: 6.3.1
  • First release: May 16, 2014
  • Latest release: Apr 17, 2015
  • Number of updates: 7
  • Update frequency: every 48.1 days
  • Top authors: tripgrass (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,222 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▲1.49ms] Passed 4 tests

This is a short check of server-side resources used by Lead to Clio
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1345.67 ▲0.52
Dashboard /wp-admin3.47 ▲0.1653.56 ▲1.21
Posts /wp-admin/edit.php3.58 ▲0.2255.24 ▲4.41
Add New Post /wp-admin/post-new.php6.07 ▲0.19101.06 ▲1.36
Media Library /wp-admin/upload.php3.39 ▲0.1636.49 ▲2.86
Lead-to-Clio Settings /wp-admin/options-general.php?page=lead-to-clio-admin3.3940.97

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
db_upgraded
add_to_pages
lead_to_clio_version
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Lead to Clio: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.38 ▲0.022.67 ▲0.9644.51 ▼0.89
Dashboard /wp-admin2,206 ▲295.61 ▼0.0489.12 ▼3.8738.04 ▼4.18
Posts /wp-admin/edit.php2,108 ▲81.97 ▼0.0138.25 ▼0.2036.16 ▼2.74
Add New Post /wp-admin/post-new.php6,229 ▲4,70119.13 ▼3.94907.10 ▲224.5062.41 ▲13.12
Media Library /wp-admin/upload.php1,405 ▲54.30 ▲0.1097.31 ▼3.2240.90 ▲0.34
Lead-to-Clio Settings /wp-admin/options-general.php?page=lead-to-clio-admin1,0993.1349.5227.40

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • can_compress_scripts
    • widget_recent-comments
    • add_to_pages
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • lead_to_clio_version
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === lead-to-clio === )
Please take inspiration from this readme.txt

lead-to-clio/lead-to-clio.php 92% from 13 tests

The primary PHP file in "Lead to Clio" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,006 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP8227429871
CSS10075
JavaScript516660

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity25.33
▷ Minimum class complexity5.00
▷ Maximum class complexity76.00
Average method complexity3.98
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods49
▷ Static methods36.12%
▷ Public methods4387.76%
▷ Protected methods00.00%
▷ Private methods612.24%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin