Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.93MB] [CPU: ▲1.58ms] Passed 4 tests
This is a short check of server-side resources used by SWELLEnterprise
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.27 ▲0.80 | 48.62 ▲11.56 |
Dashboard /wp-admin | 4.28 ▲0.93 | 58.48 ▼0.53 |
Posts /wp-admin/edit.php | 4.39 ▲1.03 | 52.79 ▲5.08 |
Add New Post /wp-admin/post-new.php | 6.90 ▲1.02 | 89.94 ▼9.78 |
Media Library /wp-admin/upload.php | 4.20 ▲0.97 | 47.08 ▲13.00 |
SWELLEnterprise /wp-admin/options-general.php?page=swellenterprise | 4.18 | 40.58 |
Server storage [IO: ▲10.81MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 534 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by SWELLEnterprise
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 13.50 ▼0.81 | 8.46 ▲6.86 | 36.79 ▼7.95 |
Dashboard /wp-admin | 2,210 ▲19 | 5.90 ▲0.88 | 112.36 ▲13.02 | 41.68 ▼1.97 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.06 | 33.78 ▼1.46 | 33.54 ▲0.03 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 22.91 ▼0.30 | 673.72 ▼2.66 | 55.14 ▲3.14 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.22 ▼0.02 | 94.26 ▼11.86 | 43.26 ▼4.65 |
SWELLEnterprise /wp-admin/options-general.php?page=swellenterprise | 1,603 | 9.62 | 307.22 | 88.35 |
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
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% 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 everything seems fine, this is not an exhaustive test
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 non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/swellenterprise/public/partials/swellenterprise-public-display.php
- > /wp-content/plugins/swellenterprise/admin/partials/swellenterprise-admin-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/swellenterprise/includes/class-swellenterprise-restapis.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
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
5 plugin tags: sales, client management, project management, leads, crm
swellenterprise/swellenterprise.php Passed 13 tests
"SWELLEnterprise" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
A plugin that connects your website to the SWELLEnterprise services.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected38,117 lines of code in 495 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 15,622 |
JavaScript | 420 | 1,578 | 8,681 | 7,913 |
PHP | 56 | 2,278 | 2,353 | 6,384 |
CSS | 15 | 69 | 304 | 5,525 |
SVG | 2 | 0 | 0 | 2,672 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 23.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 231.00 |
Average method complexity | 4.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 1 | 1.96% |
▷ Concrete classes | 50 | 98.04% |
▷ Final classes | 0 | 0.00% |
Methods | 309 | |
▷ Static methods | 31 | 10.03% |
▷ Public methods | 282 | 91.26% |
▷ Protected methods | 16 | 5.18% |
▷ Private methods | 11 | 3.56% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.09MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/exopite-simple-options/assets/images/ui-icons_309bbf_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
admin/exopite-simple-options/assets/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
admin/exopite-simple-options/assets/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
admin/exopite-simple-options/assets/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/exopite-simple-options/assets/images/ui-bg_glass_55_444444_1x400.png | 0.12KB | 0.16KB | 0.00% |