Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.22ms] Passed 4 tests
An overview of server-side resources used by Qcart
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.61 ▼7.02 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.15 ▼8.95 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.18 ▼0.57 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.03 ▼12.32 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.30 ▼0.09 |
Qcart /wp-admin/options-general.php?page=qcart | 3.23 | 32.45 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Qcart
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,955 ▲209 | 18.45 ▲4.21 | 82.10 ▲80.40 | 45.70 ▲3.37 |
Dashboard /wp-admin | 2,215 ▲27 | 5.86 ▲0.98 | 101.34 ▲2.42 | 42.23 ▼1.79 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.03 ▲0.01 | 40.19 ▲5.11 | 43.62 ▲5.82 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.35 ▲5.85 | 657.35 ▼51.35 | 49.42 ▼7.66 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.29 ▲0.01 | 100.53 ▼4.14 | 42.13 ▼5.09 |
Qcart /wp-admin/options-general.php?page=qcart | 774 | 2.03 | 22.23 | 26.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/comoquiero/templates/settings.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: error in wp-content/plugins/comoquiero/templates/settings.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comoquiero/comoquiero.php:13
- > PHP Notice
Undefined variable: updated in wp-content/plugins/comoquiero/templates/settings.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comoquiero/qcart-settings.php:4
- > PHP Notice
Undefined variable: error in wp-content/plugins/comoquiero/templates/settings.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comoquiero/settings.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
10 plugin tags: qcart, qcar, recipe, qc, cart...
comoquiero/comoquiero.php Passed 13 tests
The primary PHP file in "Qcart" version 23.09.131449 is used by WordPress to initiate all plugin functionality
120 characters long description:
Your plugin to automatically allow your users to add a shopping list cart for your recipes, display nutrition, and more!
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 plugin347 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 79 | 43 | 301 |
JavaScript | 3 | 0 | 0 | 34 |
JSON | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 4 | 100.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 10 | 83.33% |
▷ Anonymous functions | 2 | 16.67% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin