83% ajaxify-wc-shopping

Code Review | Single Page Shopping

WordPress plugin Single Page Shopping scored 83% from 54 tests.

About plugin

  • Plugin page: ajaxify-wc-shopping
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Aug 12, 2021
  • Latest release: Jun 23, 2022
  • Number of updates: 21
  • Update frequency: every 15.1 days
  • Top authors: spplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 558 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▲2.25ms] Passed 4 tests

An overview of server-side resources used by Single Page Shopping
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.60 ▼5.26
Dashboard /wp-admin3.31 ▲0.0045.53 ▼1.42
Posts /wp-admin/edit.php3.36 ▲0.0055.66 ▲10.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0099.66 ▲11.66
Media Library /wp-admin/upload.php3.23 ▲0.0037.15 ▲5.39

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Single Page Shopping
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.14 ▼1.612.04 ▲0.2070.30 ▲26.06
Dashboard /wp-admin2,206 ▲215.85 ▲1.0099.78 ▼4.0445.55 ▼0.02
Posts /wp-admin/edit.php2,089 ▲182.05 ▲0.0547.10 ▲9.9548.60 ▲11.86
Add New Post /wp-admin/post-new.php1,514 ▼517.34 ▼5.93738.46 ▲123.5452.69 ▼3.30
Media Library /wp-admin/upload.php1,388 ▼34.20 ▲0.00129.50 ▲28.6263.76 ▲20.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ajaxify-wc-shopping/settings/class-awcs-admin-settings.php:323

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 47 tag instead of maximum 10
  • Screenshots: A description for screenshot #2 is missing in ajaxify-wc-shopping/assets to your readme.txt
You can look at the official readme.txt

ajaxify-wc-shopping/ajaxify-woocommerce-shopping.php 85% from 13 tests

Analyzing the main PHP file in "Single Page Shopping" version 1.1.0
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("ajaxify-wc-shopping.php" instead of "ajaxify-woocommerce-shopping.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected6,957 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PO File15764162

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity46.80
▷ Minimum class complexity8.00
▷ Maximum class complexity104.00
Average method complexity6.03
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
▷ Static methods5459.34%
▷ Public methods7481.32%
▷ Protected methods88.79%
▷ Private methods99.89%
▷ Named functions23100.00%
▷ Anonymous functions00.00%
▷ Global constants7100.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
No PNG images were found in this plugin