89% abantecart-embedding

Code Review | AbanteCart Embed

WordPress plugin AbanteCart Embed scored89%from 54 tests.

About plugin

  • Plugin page: abantecart-embedding
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3.0
  • WordPress version: 6.3.1
  • First release: Mar 23, 2021
  • Latest release: Jul 12, 2023
  • Number of updates: 15
  • Update frequency: every 56.3 days
  • Top authors: abantecart (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,180 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0644.84 ▲0.77
Dashboard /wp-admin3.37 ▲0.0653.01 ▲0.28
Posts /wp-admin/edit.php3.48 ▲0.1254.07 ▼2.26
Add New Post /wp-admin/post-new.php5.97 ▲0.0891.67 ▼27.47
Media Library /wp-admin/upload.php3.29 ▲0.0640.04 ▼8.50
Help /wp-admin/admin.php?page=Abantecart_help3.2737.17
Settings /wp-admin/admin.php?page=Abantecart3.2731.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲7814.36 ▲0.011.72 ▼0.3042.38 ▼2.67
Dashboard /wp-admin2,230 ▲625.57 ▼0.0395.61 ▲0.1482.26 ▲35.85
Posts /wp-admin/edit.php2,126 ▲292.00 ▼0.1236.01 ▼1.7535.15 ▲0.17
Add New Post /wp-admin/post-new.php1,549 ▲1422.99 ▲4.56684.36 ▲33.39130.25 ▲58.66
Media Library /wp-admin/upload.php1,423 ▲234.22 ▲0.04125.40 ▲9.3674.55 ▲30.25
Help /wp-admin/admin.php?page=Abantecart_help9291.9826.7445.09
Settings /wp-admin/admin.php?page=Abantecart8641.9926.0724.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:
LanguageFilesBlank linesComment linesLines of code
CSS11290546
PHP66393451
JavaScript11019

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 code0.24
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods18
▷ Static methods15.56%
▷ Public methods1794.44%
▷ Protected methods00.00%
▷ Private methods15.56%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/img/icon-256x256.png21.35KB6.85KB▼ 67.91%
assets/img/wp-5.png229.02KB111.60KB▼ 51.27%
assets/img/wp-7.png174.82KB82.28KB▼ 52.94%
assets/img/icon.png13.29KB0.86KB▼ 93.50%
assets/img/wp-4.png65.98KB35.66KB▼ 45.96%