89% arkcommerce

Code Review | ARKCommerce

WordPress plugin ARKCommerce scored89%from 54 tests.

About plugin

  • Plugin page: arkcommerce
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.4-4.9.6
  • WordPress version: 6.3.1
  • First release: Jan 19, 2018
  • Latest release: Jun 29, 2018
  • Number of updates: 13
  • Update frequency: every 12.6 days
  • Top authors: spikarija (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /874 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.12ms] Passed 4 tests

A check of server-side resources used by ARKCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.90 ▼0.81
Dashboard /wp-admin3.31 ▼0.0449.37 ▼14.27
Posts /wp-admin/edit.php3.36 ▲0.0053.03 ▲2.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.45 ▼2.06
Media Library /wp-admin/upload.php3.23 ▲0.0034.82 ▼3.32

Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

ARKCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.55 ▲0.331.84 ▼0.7844.27 ▼5.18
Dashboard /wp-admin2,195 ▲155.68 ▲0.0592.48 ▲3.6039.81 ▼1.53
Posts /wp-admin/edit.php2,100 ▲31.99 ▼0.0340.76 ▲3.4736.52 ▼4.67
Add New Post /wp-admin/post-new.php1,547 ▲223.00 ▼0.19675.91 ▼6.1653.91 ▲0.27
Media Library /wp-admin/upload.php1,397 ▼34.20 ▼0.05104.21 ▼8.6743.89 ▼3.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 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
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
  • Screenshots: Please a description for screenshot #16 in arkcommerce/assets to your readme.txt
  • Requires php: Version format is invalid
You can look at the official readme.txt

arkcommerce/arkcommerce.php 85% from 13 tests

The main PHP file in "ARKCommerce" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 345 characters long)
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "3.2.4")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin5,260 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP88901,1454,296
PO File1291451805
CSS2240147
JavaScript333011
SVG1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity21.90
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity3.63
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods159
▷ Static methods6842.77%
▷ Public methods15597.48%
▷ Protected methods00.00%
▷ Private methods42.52%
Functions51
▷ Named functions51100.00%
▷ Anonymous functions00.00%
Constants36
▷ Global constants36100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/arkicon.png5.15KB2.45KB▼ 52.52%
assets/images/gplv3.png6.47KB5.09KB▼ 21.38%
assets/images/arkcommerce.png47.79KB15.62KB▼ 67.32%
assets/images/spika.png27.09KB11.63KB▼ 57.06%
assets/images/arkcommercemailicon.png12.57KB5.06KB▼ 59.76%