Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼294.17ms] Passed 4 tests
This is a short check of server-side resources used by AbanteCart Embed
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.12 | 56.52 ▲4.45 |
Dashboard /wp-admin | 3.48 ▲0.07 | 34.60 ▲0.98 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 41.25 ▲4.71 |
Add New Post /wp-admin/post-new.php | 6.97 ▼0.02 | 96.28 ▼1,183.28 |
Media Library /wp-admin/upload.php | 3.35 ▲0.06 | 26.64 ▲1.17 |
Help /wp-admin/admin.php?page=Abantecart_help | 3.34 | 24.38 |
Settings /wp-admin/admin.php?page=Abantecart | 3.33 | 28.72 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 1 new option
New WordPress options |
---|
Abantecart_version |
Browser metrics Passed 4 tests
AbanteCart Embed: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,830 ▲86 | 15.98 ▲0.25 | 6.13 ▼0.41 | 2.29 ▲0.04 |
Dashboard /wp-admin | 2,959 ▲101 | 6.13 ▼0.07 | 131.27 ▼3.72 | 187.19 ▲23.21 |
Posts /wp-admin/edit.php | 2,718 ▲33 | 3.16 ▼0.07 | 64.48 ▼1.62 | 140.88 ▼5.24 |
Add New Post /wp-admin/post-new.php | 1,742 ▲81 | 21.95 ▲5.82 | 415.88 ▼6.13 | 188.25 ▲35.81 |
Media Library /wp-admin/upload.php | 1,728 ▲27 | 5.52 ▼0.01 | 131.16 ▼20.67 | 208.78 ▲27.00 |
Help /wp-admin/admin.php?page=Abantecart_help | 1,189 | 2.42 | 58.26 | 115.97 |
Settings /wp-admin/admin.php?page=Abantecart | 1,085 | 2.42 | 54.76 | 102.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
7 plugin tags: ecommerce, online store, commerce, checkout, cart...
abantecart-embedding/index.php 85% from 13 tests
The main PHP script in "AbanteCart Embed" version 1.0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("abantecart-embedding.php" instead of "index.php")
- Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,016 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 129 | 0 | 546 |
PHP | 6 | 63 | 93 | 451 |
JavaScript | 1 | 1 | 0 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 17 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.56% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.58MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/wp-7.png | 174.82KB | 82.28KB | ▼ 52.94% |
assets/img/icon.png | 13.29KB | 0.86KB | ▼ 93.50% |
assets/img/wp-3.png | 74.38KB | 39.57KB | ▼ 46.80% |
assets/img/icon-256x256.png | 21.35KB | 6.85KB | ▼ 67.91% |
assets/img/wp-4.png | 65.98KB | 35.66KB | ▼ 45.96% |