94% canto-clients

Code Review | Canto Clients

WordPress plugin Canto Clients scored 94% from 54 tests.

About plugin

  • Plugin page: canto-clients
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.7.1
  • WordPress version: 5.9.2
  • First release: Nov 10, 2013
  • Latest release: Oct 17, 2019
  • Number of updates: 8
  • Update frequency: every 270.9 days
  • Top authors: CantoThemes (87.5%)kitthemes (25%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,847 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼296.45ms] Passed 4 tests

Server-side resources used by Canto Clients
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.0966.28 ▲12.81
Dashboard /wp-admin3.47 ▲0.0633.50 ▼1.93
Posts /wp-admin/edit.php3.69 ▲0.0536.11 ▼2.96
Add New Post /wp-admin/post-new.php6.93 ▼0.0595.06 ▼1,181.49
Media Library /wp-admin/upload.php3.34 ▲0.0426.37 ▲0.60
Add New Clients /wp-admin/post-new.php?post_type=clients3.6341.30
Clients /wp-admin/edit.php?post_type=clients3.3826.27

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Canto Clients
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,848 ▲9416.20 ▲0.337.37 ▲1.072.13 ▼0.68
Dashboard /wp-admin2,953 ▲696.39 ▼0.13134.13 ▼7.93160.19 ▼6.39
Posts /wp-admin/edit.php2,723 ▲323.43 ▼0.0066.59 ▼0.52141.48 ▼2.06
Add New Post /wp-admin/post-new.php1,781 ▲9122.89 ▲1.67412.07 ▼60.45154.67 ▼7.98
Media Library /wp-admin/upload.php1,733 ▲385.77 ▲0.05143.72 ▲0.05185.83 ▼0.87
Add New Clients /wp-admin/post-new.php?post_type=clients2,1485.7293.30133.41
Clients /wp-admin/edit.php?post_type=clients1,3993.3561.52114.63

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/canto-clients/canto-clients.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

canto-clients/canto-clients.php Passed 13 tests

Analyzing the main PHP file in "Canto Clients" version 1.0
53 characters long description:
Canto Clients simple and effective clients shortcode.

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 plugin158 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.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
There are no PNG files in this plugin