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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.86MB] [CPU: ▲4.96ms] Passed 4 tests
An overview of server-side resources used by Swipecart
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.32 ▲0.87 | 44.87 ▲3.31 |
Dashboard /wp-admin | 4.16 ▲0.86 | 54.46 ▲7.22 |
Posts /wp-admin/edit.php | 4.27 ▲0.92 | 54.27 ▲5.62 |
Add New Post /wp-admin/post-new.php | 6.76 ▲0.88 | 106.67 ▲3.68 |
Media Library /wp-admin/upload.php | 4.08 ▲0.86 | 43.14 ▲10.06 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 4.09 | 37.84 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
swipecart_auth |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Swipecart
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲135 | 13.23 ▼0.93 | 4.88 ▲2.42 | 35.50 ▼10.79 |
Dashboard /wp-admin | 2,242 ▲54 | 5.89 ▲0.97 | 108.84 ▲2.43 | 45.06 ▲1.84 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.10 ▲0.07 | 40.42 ▼2.07 | 43.01 ▲7.44 |
Add New Post /wp-admin/post-new.php | 1,564 ▲30 | 23.28 ▲0.16 | 590.06 ▼87.26 | 51.24 ▼4.64 |
Media Library /wp-admin/upload.php | 1,432 ▲41 | 4.28 ▲0.06 | 98.04 ▼0.38 | 45.25 ▲4.12 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 967 | 2.09 | 25.59 | 30.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
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 | 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 items
- 34× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/swipecart/inc/wp-init/admin-pages/swipecart/init.php
- > /wp-content/plugins/swipecart/inc/Utility.php
- > /wp-content/plugins/swipecart/swipecart.php
- > /wp-content/plugins/swipecart/inc/wp-init/integrations/popup/init.php
- > /wp-content/plugins/swipecart/inc/wp-init/integrations/security/init.php
- > /wp-content/plugins/swipecart/inc/wp-init/admin-pages/swipecart/class/views/html-sc-integration-admin-options.php
- > /wp-content/plugins/swipecart/inc/wp-init/integrations/back-in-stock/init.php
- > /wp-content/plugins/swipecart/inc/class/class-events.php
- > /wp-content/plugins/swipecart/inc/wp-init/integrations/popup/views/popup-html.php
- > /wp-content/plugins/swipecart/inc/wp-init/integrations/checkout/class-checkout.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/swipecart/inc/wp-init/plugins/tgmpa.php:2146
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
swipecart/swipecart.php 77% from 13 tests
This is the main PHP file of "Swipecart" version 2.8.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)
- Requires PHP: Required version must be the same as the one declared in readme.txt ("7.3" instead of "7.4")
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "4.9")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected6,811 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 1,516 | 3,937 | 6,284 |
Markdown | 1 | 66 | 0 | 295 |
JavaScript | 4 | 0 | 36 | 222 |
CSS | 2 | 0 | 0 | 7 |
SVG | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 23.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 40 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 373 | |
▷ Static methods | 48 | 12.87% |
▷ Public methods | 323 | 86.60% |
▷ Protected methods | 23 | 6.17% |
▷ Private methods | 27 | 7.24% |
Functions | 28 | |
▷ Named functions | 3 | 10.71% |
▷ Anonymous functions | 25 | 89.29% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin