Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.67MB] [CPU: ▼34.24ms] Passed 4 tests
Analyzing server-side resources used by Woo 1CRM Extensions
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.20 | 41.64 ▲2.70 |
Dashboard /wp-admin | 3.27 ▼0.03 | 23.94 ▼21.89 |
Posts /wp-admin/edit.php | 3.28 ▼0.08 | 27.88 ▼33.90 |
Add New Post /wp-admin/post-new.php | 3.28 ▼2.61 | 28.59 ▼71.34 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 24.64 ▼9.83 |
Overview /wp-admin/admin.php?page=woo1crm-extensions | 3.28 | 26.59 |
Additional Fields /wp-admin/admin.php?page=woo1crm-additional-fields | 3.28 | 31.62 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Woo 1CRM Extensions
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲121 | 13.15 ▼1.60 | 1.99 ▲0.05 | 42.33 ▼0.59 |
Dashboard /wp-admin | 2,237 ▲52 | 5.89 ▲0.07 | 105.81 ▼10.39 | 42.05 ▲0.79 |
Posts /wp-admin/edit.php | 2,123 ▲31 | 2.03 ▼0.00 | 43.65 ▼2.80 | 34.98 ▲0.80 |
Add New Post /wp-admin/post-new.php | 1,554 ▲40 | 23.01 ▲5.52 | 651.97 ▼155.47 | 54.78 ▼1.26 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.22 ▼0.01 | 115.63 ▼9.37 | 46.97 ▼6.68 |
Overview /wp-admin/admin.php?page=woo1crm-extensions | 803 | 2.04 | 27.89 | 25.47 |
Additional Fields /wp-admin/admin.php?page=woo1crm-additional-fields | 852 | 1.71 | 32.07 | 27.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/woo-1crm-extensions/admin/class-woo-1crm-extensions-admin.php+274
Use of undefined constant text - assumed 'text' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woo1crm-additional-fields
- > Warning in wp-content/plugins/woo-1crm-extensions/admin/class-woo-1crm-extensions-admin.php+274
Use of undefined constant text - assumed 'text' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woo1crm-additional-fields
- > Warning in wp-content/plugins/woo-1crm-extensions/admin/class-woo-1crm-extensions-admin.php+274
Use of undefined constant textarea - assumed 'textarea' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woo1crm-additional-fields
- > Warning in wp-content/plugins/woo-1crm-extensions/admin/class-woo-1crm-extensions-admin.php+274
Use of undefined constant select - assumed 'select' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woo1crm-additional-fields
- > Warning in wp-content/plugins/woo-1crm-extensions/admin/class-woo-1crm-extensions-admin.php+274
Use of undefined constant checkbox - assumed 'checkbox' (this will throw an Error in a future version of PHP)
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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/woo-1crm-extensions/admin/partials/woo-1crm-extensions-admin-display.php
- > /wp-content/plugins/woo-1crm-extensions/public/partials/woo-1crm-extensions-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WC_API_Resource' not found in wp-content/plugins/woo-1crm-extensions/admin/class-woo-1crm-extensions-endpointhandler.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: There are too many tags (17 tag instead of maximum 10)
woo-1crm-extensions/woo-1crm-extensions.php 92% from 13 tests
The main file in "Woo 1CRM Extensions" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 171 characters long)
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
Success! There were no dangerous files found in this plugin970 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 300 | 660 | 797 |
CSS | 2 | 2 | 8 | 121 |
JavaScript | 2 | 21 | 54 | 52 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 5.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 4 | 6.15% |
▷ Public methods | 56 | 86.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 13.85% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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