Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.09 | 66.28 ▲12.81 |
Dashboard /wp-admin | 3.47 ▲0.06 | 33.50 ▼1.93 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 36.11 ▼2.96 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.05 | 95.06 ▼1,181.49 |
Media Library /wp-admin/upload.php | 3.34 ▲0.04 | 26.37 ▲0.60 |
Add New Clients /wp-admin/post-new.php?post_type=clients | 3.63 | 41.30 |
Clients /wp-admin/edit.php?post_type=clients | 3.38 | 26.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,848 ▲94 | 16.20 ▲0.33 | 7.37 ▲1.07 | 2.13 ▼0.68 |
Dashboard /wp-admin | 2,953 ▲69 | 6.39 ▼0.13 | 134.13 ▼7.93 | 160.19 ▼6.39 |
Posts /wp-admin/edit.php | 2,723 ▲32 | 3.43 ▼0.00 | 66.59 ▼0.52 | 141.48 ▼2.06 |
Add New Post /wp-admin/post-new.php | 1,781 ▲91 | 22.89 ▲1.67 | 412.07 ▼60.45 | 154.67 ▼7.98 |
Media Library /wp-admin/upload.php | 1,733 ▲38 | 5.77 ▲0.05 | 143.72 ▲0.05 | 185.83 ▼0.87 |
Add New Clients /wp-admin/post-new.php?post_type=clients | 2,148 | 5.72 | 93.30 | 133.41 |
Clients /wp-admin/edit.php?post_type=clients | 1,399 | 3.35 | 61.52 | 114.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
- > PHP Fatal error
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
Optimizations
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: ""
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 31 | 47 | 132 |
CSS | 1 | 0 | 0 | 15 |
JavaScript | 1 | 0 | 10 | 11 |
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 code | 0.37 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 25.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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