84% canto-clients

Code Review | Canto Clients

WordPress plugin Canto Clients scored84%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: 6.3.1
  • 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

30+ active /2,056 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.04MB] [CPU: ▼11.32ms] Passed 4 tests

An overview of server-side resources used by Canto Clients
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.75 ▼2.64
Dashboard /wp-admin3.35 ▲0.0146.68 ▼15.64
Posts /wp-admin/edit.php3.40 ▲0.0542.92 ▼1.05
Add New Post /wp-admin/post-new.php5.95 ▲0.0779.39 ▼25.94
Media Library /wp-admin/upload.php3.27 ▲0.0534.97 ▲0.97
Clients /wp-admin/edit.php?post_type=clients3.3236.28
Add New Clients /wp-admin/post-new.php?post_type=clients3.3239.55

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Canto Clients: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8413.18 ▼1.201.75 ▼0.1540.07 ▼9.90
Dashboard /wp-admin2,233 ▲455.81 ▲0.9194.69 ▼16.5539.62 ▼2.15
Posts /wp-admin/edit.php2,116 ▲271.99 ▼0.0533.75 ▼8.4235.34 ▲0.74
Add New Post /wp-admin/post-new.php1,556 ▲1122.96 ▲4.81652.67 ▲34.4954.33 ▲0.76
Media Library /wp-admin/upload.php1,415 ▲244.20 ▲0.0393.56 ▼3.1239.18 ▼3.39
Clients /wp-admin/edit.php?post_type=clients1,0801.9529.3930.52
Add New Clients /wp-admin/post-new.php?post_type=clients1,6043.5070.1836.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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_path() in wp-content/plugins/canto-clients/canto-clients.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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Donate link: Invalid URI found ("")
You can look at the official readme.txt

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

The main file in "Canto Clients" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
53 characters long description:
Canto Clients simple and effective clients shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin158 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23147132
CSS10015
JavaScript101011

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues 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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected