Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.28ms] Passed 4 tests
A check of server-side resources used by WooCom Account Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.55 ▲1.92 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.33 ▼1.73 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.89 ▲2.14 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.93 ▲1.71 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.38 ▼11.03 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WooCom Account Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.10 | 1.59 ▼0.03 | 39.62 ▼0.58 |
Dashboard /wp-admin | 2,203 ▲15 | 5.81 ▲0.94 | 93.65 ▼11.73 | 39.89 ▼3.61 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.00 | 38.85 ▲2.09 | 35.25 ▲2.32 |
Add New Post /wp-admin/post-new.php | 1,548 ▲34 | 18.20 ▲0.76 | 697.23 ▲1.04 | 72.93 ▲17.57 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.19 ▲0.02 | 95.54 ▼2.09 | 42.09 ▼3.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/woocom-account-widget/src/AccountWidgetCore/AccountWidgetCore.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function TheDramatist\\WooComAW\\add_action() in wp-content/plugins/woocom-account-widget/woocom-account-widget.php:80
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woocom-account-widget/src/AccountWidgetCore/Views/HtmlFormView.php:2
- > 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 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
8 plugin tags: ecommerce, woocommerce, orders, my-account, logout...
woocom-account-widget/woocom-account-widget.php 92% from 13 tests
Analyzing the main PHP file in "WooCom Account Widget" version 1.0.0
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 180 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin2,312 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 14 | 520 | 917 | 1,425 |
PHP | 11 | 154 | 270 | 811 |
Markdown | 2 | 29 | 0 | 52 |
JSON | 2 | 0 | 0 | 24 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 26.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 5.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 3 | 9.38% |
▷ Public methods | 31 | 96.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.12% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin