Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.65ms] Passed 4 tests
Server-side resources used by CTT Expresso para WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.07 ▼4.56 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.25 ▼1.25 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 49.37 ▲4.04 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 96.08 ▼9.87 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.62 ▲1.08 |
Log /wp-admin/admin.php?page=cepw_log | 3.21 | 28.01 |
Server storage [IO: ▲0.46MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
_CTTExpresso_URL |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CTT Expresso para WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 13.43 ▼0.97 | 1.67 ▲0.05 | 43.48 ▲0.38 |
Dashboard /wp-admin | 2,232 ▲44 | 4.95 ▼0.91 | 109.97 ▲3.63 | 41.89 ▲0.68 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.25 ▲0.27 | 43.30 ▲3.50 | 36.46 ▲2.04 |
Add New Post /wp-admin/post-new.php | 1,530 ▼12 | 23.78 ▲5.58 | 636.96 ▲34.75 | 64.34 ▲14.10 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.45 ▲0.24 | 96.21 ▼2.26 | 42.48 ▲0.40 |
Log /wp-admin/admin.php?page=cepw_log | 762 | 1.80 | 25.40 | 21.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% 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)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=cepw_log
- > Warning in wp-content/plugins/ctt-expresso-para-woocommerce/ctt-expresso-para-woocommerce.php+2834
file_get_contents(wp-content/uploads/cepw/cepw_log.txt): failed to open stream: No such file or directory
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ctt-expresso-para-woocommerce/ctt-expresso-recolhas.php:93
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: woocommerce, thisfunctional, ctt, ctt expresso
ctt-expresso-para-woocommerce/ctt-expresso-para-woocommerce.php 92% from 13 tests
The main PHP script in "CTT Expresso para WooCommerce" version 3.2.12 is automatically included on every request by WordPress
It is important to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "4.6.1")
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
No dangerous file extensions were detected6,694 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 484 | 173 | 3,357 |
JavaScript | 5 | 365 | 128 | 2,783 |
CSS | 3 | 101 | 6 | 503 |
SVG | 2 | 0 | 1 | 51 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 75 | |
▷ Named functions | 75 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo.png | 5.52KB | 4.37KB | ▼ 20.93% |
assets/img/ctt_expresso.png | 9.87KB | 5.63KB | ▼ 42.93% |
assets/img/menu_icon.png | 3.27KB | 1.36KB | ▼ 58.32% |