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.07MB] [CPU: ▼9.49ms] Passed 4 tests
A check of server-side resources used by AbanteCart Embed
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 44.84 ▲0.77 |
Dashboard /wp-admin | 3.37 ▲0.06 | 53.01 ▲0.28 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 54.07 ▼2.26 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 91.67 ▼27.47 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.04 ▼8.50 |
Help /wp-admin/admin.php?page=Abantecart_help | 3.27 | 37.17 |
Settings /wp-admin/admin.php?page=Abantecart | 3.27 | 31.71 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
Abantecart_version |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by AbanteCart Embed
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲78 | 14.36 ▲0.01 | 1.72 ▼0.30 | 42.38 ▼2.67 |
Dashboard /wp-admin | 2,230 ▲62 | 5.57 ▼0.03 | 95.61 ▲0.14 | 82.26 ▲35.85 |
Posts /wp-admin/edit.php | 2,126 ▲29 | 2.00 ▼0.12 | 36.01 ▼1.75 | 35.15 ▲0.17 |
Add New Post /wp-admin/post-new.php | 1,549 ▲14 | 22.99 ▲4.56 | 684.36 ▲33.39 | 130.25 ▲58.66 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.22 ▲0.04 | 125.40 ▲9.36 | 74.55 ▲30.25 |
Help /wp-admin/admin.php?page=Abantecart_help | 929 | 1.98 | 26.74 | 45.09 |
Settings /wp-admin/admin.php?page=Abantecart | 864 | 1.99 | 26.07 | 24.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: sell, cart, checkout, commerce, buy now...
abantecart-embedding/index.php 85% from 13 tests
Analyzing the main PHP file in "AbanteCart Embed" version 1.0.2
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 148 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("abantecart-embedding.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable 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
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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/icon-256x256.png | 21.35KB | 6.85KB | ▼ 67.91% |
assets/img/wp-5.png | 229.02KB | 111.60KB | ▼ 51.27% |
assets/img/wp-7.png | 174.82KB | 82.28KB | ▼ 52.94% |
assets/img/icon.png | 13.29KB | 0.86KB | ▼ 93.50% |
assets/img/wp-4.png | 65.98KB | 35.66KB | ▼ 45.96% |