Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.24MB] [CPU: ▼3.98ms] Passed 4 tests
Server-side resources used by WC1C
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 41.29 ▼3.00 |
Dashboard /wp-admin | 3.55 ▲0.25 | 49.90 ▼2.08 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 53.83 ▲1.31 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 88.40 ▼12.14 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 43.90 ▲8.59 |
Server storage [IO: ▲2.64MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 462 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
wc1c_version_init |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
wc1c_wizard |
Browser metrics Passed 4 tests
A check of browser resources used by WC1C
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.67 ▼0.05 | 1.80 ▼0.01 | 41.08 ▼6.09 |
Dashboard /wp-admin | 2,192 ▲15 | 5.64 ▼0.03 | 82.97 ▼7.59 | 37.19 ▼4.79 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.98 ▼0.01 | 36.63 ▼4.20 | 35.39 ▼3.19 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.76 ▲0.60 | 669.82 ▲37.16 | 52.44 ▲3.39 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.30 ▲0.13 | 96.35 ▼6.61 | 43.12 ▲0.79 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- wc1c_wizard
- wc1c_version_init
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
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
Good news, no errors were detected
SRP 50% 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 fix the following
- 106× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/wc1c-main/vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\MailHandler' not found in wp-content/plugins/wc1c-main/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php:23
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wc1c-main/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/wc1c-main/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php:30
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wc1c-main/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/wc1c-main/vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/wc1c-main/vendor/psr/log/Psr/Log/AbstractLogger.php:12
- > PHP Fatal error
Uncaught Error: Class 'Wc1c\\Cml\\Abstracts\\DataAbstract' not found in wp-content/plugins/wc1c-main/vendor/wc1c/cml/src/Entities/OffersPackage.php:12
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Processor\\MemoryProcessor' not found in wp-content/plugins/wc1c-main/vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php:20
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/wc1c-main/vendor/monolog/monolog/src/Monolog/Handler/HipChatHandler.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: 1, cml, ecommerce, wc1c, commerceml...
wc1c-main/wc1c-main.php 92% from 13 tests
The main PHP script in "WC1C" version 0.22.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.2" instead of "4.3")
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
Everything looks great! No dangerous files found in this plugin39,165 lines of code in 445 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 428 | 8,492 | 19,968 | 34,388 |
PO File | 1 | 1,207 | 1,711 | 3,655 |
Markdown | 11 | 196 | 0 | 563 |
JSON | 1 | 0 | 0 | 534 |
JavaScript | 3 | 1 | 6 | 24 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 11.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 642.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 82 | |
Interfaces | 60 | |
Traits | 24 | |
Classes | 288 | |
▷ Abstract classes | 37 | 12.85% |
▷ Concrete classes | 251 | 87.15% |
▷ Final classes | 47 | 18.73% |
Methods | 2,488 | |
▷ Static methods | 96 | 3.86% |
▷ Public methods | 2,109 | 84.77% |
▷ Protected methods | 238 | 9.57% |
▷ Private methods | 141 | 5.67% |
Functions | 31 | |
▷ Named functions | 3 | 9.68% |
▷ Anonymous functions | 28 | 90.32% |
Constants | 92 | |
▷ Global constants | 4 | 4.35% |
▷ Class constants | 88 | 95.65% |
▷ Public constants | 88 | 100.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
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/promo_logs.png | 51.29KB | 24.64KB | ▼ 51.97% |