Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼9.54ms] Passed 4 tests
Analyzing server-side resources used by Clients
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 45.43 ▲5.84 |
Dashboard /wp-admin | 3.46 ▲0.11 | 49.78 ▼10.53 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 48.54 ▲1.61 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 87.68 ▼24.03 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 34.05 ▼5.20 |
All Clients /wp-admin/admin.php?page=ct-all-clients | 3.38 | 39.04 |
Client Categories /wp-admin/admin.php?page=ct-categories | 3.38 | 40.11 |
Shortcodes /wp-admin/admin.php?page=ct-shortcode | 3.38 | 37.11 |
Add New /wp-admin/admin.php?page=ct-add-new | 3.38 | 36.26 |
Edit Client /wp-admin/admin.php?page=ct-edit-client | 3.38 | 32.11 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 28 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_ct_clients |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Clients
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲172 | 13.72 ▼0.93 | 8.97 ▲7.32 | 41.94 ▲3.04 |
Dashboard /wp-admin | 2,240 ▲52 | 5.85 ▼0.05 | 97.87 ▼14.44 | 36.72 ▼8.25 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.05 ▲0.04 | 34.68 ▼8.64 | 34.61 ▼1.05 |
Add New Post /wp-admin/post-new.php | 1,558 ▲30 | 23.05 ▲4.83 | 670.42 ▲66.56 | 53.62 ▲1.26 |
Media Library /wp-admin/upload.php | 1,422 ▲40 | 4.18 ▼0.11 | 98.96 ▼1.00 | 43.59 ▼1.84 |
All Clients /wp-admin/admin.php?page=ct-all-clients | 1,219 | 3.04 | 41.02 | 27.57 |
Client Categories /wp-admin/admin.php?page=ct-categories | 1,039 | 3.12 | 42.89 | 24.96 |
Shortcodes /wp-admin/admin.php?page=ct-shortcode | 1,215 | 3.19 | 39.61 | 27.26 |
Add New /wp-admin/admin.php?page=ct-add-new | 1,214 | 3.06 | 40.91 | 28.45 |
Edit Client /wp-admin/admin.php?page=ct-edit-client | 688 | 1.70 | 10.13 | 13.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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 following issues need your attention
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/clients/pages/admin-categories.php
- > /wp-content/plugins/clients/pages/admin-edit-client.php
- > /wp-content/plugins/clients/templates/ct-slider.php
- 14× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function ct\\add_action() in wp-content/plugins/clients/includes/post-requests.php:8
- > PHP Notice
Undefined variable: ClientList in wp-content/plugins/clients/templates/ct-slider.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function shortcode_atts() in wp-content/plugins/clients/templates/ct-grid.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/clients/pages/admin-shortcodes.php:4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/clients/includes/ct-listtable.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/clients/clients.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function ct\\add_action() in wp-content/plugins/clients/includes/ct.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/clients/pages/admin-add-new.php:4
- > PHP Fatal error
Uncaught Error: Class 'ct\\CTListTable' not found in wp-content/plugins/clients/pages/admin-all-clients.php:11
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/clients/includes/ct-listtable.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: print, featured, list, add, clients
clients/clients.php Passed 13 tests
This is the main PHP file of "Clients" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
63 characters long description:
Clients provide you an easiest way to add and retrieve clients.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,588 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 268 | 69 | 1,194 |
Sass | 2 | 40 | 0 | 198 |
JavaScript | 6 | 45 | 9 | 195 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 25 | 50.00% |
▷ Public methods | 44 | 88.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 12.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 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