84% romancart-ecommerce

Code Review | RomanCart Ecommerce

WordPress plugin RomanCart Ecommerce scored84%from 54 tests.

About plugin

  • Plugin page: romancart-ecommerce
  • Plugin version: 2.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.2-5.9.2
  • WordPress version: 6.3.1
  • First release: May 29, 2015
  • Latest release: Mar 15, 2022
  • Number of updates: 72
  • Update frequency: every 34.5 days
  • Top authors: romancartsupport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,177 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.03MB] [CPU: ▲1.02ms] Passed 4 tests

This is a short check of server-side resources used by RomanCart Ecommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.64 ▼4.31
Dashboard /wp-admin3.33 ▲0.0345.93 ▼2.09
Posts /wp-admin/edit.php3.39 ▲0.0361.09 ▲13.96
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.98 ▲8.62
Media Library /wp-admin/upload.php3.26 ▲0.0335.72 ▲1.85
RomanCart /wp-admin/options-general.php?page=plugin3.2230.88

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for RomanCart Ecommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9814.79 ▲0.412.12 ▲0.1647.09 ▼3.11
Dashboard /wp-admin2,213 ▲255.89 ▲0.9594.98 ▼22.5441.36 ▼4.51
Posts /wp-admin/edit.php2,090 ▲12.06 ▲0.0643.06 ▲5.2936.56 ▲0.73
Add New Post /wp-admin/post-new.php1,550 ▲1718.31 ▼5.11605.56 ▼86.3665.27 ▲13.21
Media Library /wp-admin/upload.php1,395 ▲74.26 ▲0.0397.15 ▼15.2442.27 ▼4.98
RomanCart /wp-admin/options-general.php?page=plugin8872.0121.9425.19

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/romancart-ecommerce/romancart_ecommerce.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: sell digital, ecommerce plugin, sell tickets, sell downloads, romancart...

romancart-ecommerce/romancart_ecommerce.php 92% from 13 tests

The principal PHP file in "RomanCart Ecommerce" v. 2.0.7 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("romancart-ecommerce.php" instead of "romancart_ecommerce.php")

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
Everything looks great! No dangerous files found in this plugin169 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13426169

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin