84% goodcarts

Code Review | Goodcarts

WordPress plugin Goodcarts scored84%from 54 tests.

About plugin

  • Plugin page: goodcarts
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.9.1
  • WordPress version: 6.3.1
  • First release: Nov 17, 2021
  • Latest release: Feb 24, 2022
  • Number of updates: 6
  • Update frequency: every 17.5 days
  • Top authors: goodcarts (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /413 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼14.64ms] Passed 4 tests

Server-side resources used by Goodcarts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.42 ▼7.06
Dashboard /wp-admin3.31 ▲0.0050.33 ▼8.59
Posts /wp-admin/edit.php3.36 ▲0.0051.87 ▲1.47
Add New Post /wp-admin/post-new.php5.89 ▼0.0197.24 ▼44.37
Media Library /wp-admin/upload.php3.23 ▲0.0039.05 ▲4.34

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
GC_Activated
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Goodcarts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.69 ▲0.341.98 ▲0.1940.85 ▼12.79
Dashboard /wp-admin2,195 ▲155.62 ▼0.0593.80 ▼6.6243.01 ▼3.20
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0439.82 ▲0.3334.52 ▼6.73
Add New Post /wp-admin/post-new.php1,528 ▼023.23 ▲0.20605.43 ▼76.2161.38 ▲6.08
Media Library /wp-admin/upload.php1,394 ▼64.17 ▼0.0796.84 ▼12.1842.70 ▼7.74

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • GC_Activated
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/goodcarts/goodcarts.php:31

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can take inspiration from this readme.txt

goodcarts/goodcarts.php Passed 13 tests

The main PHP file in "Goodcarts" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
Connect your woo-site with GoodCarts with this simple plugin.

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
There were no executable files found in this plugin407 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25061322
Markdown147085

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity20.50
▷ Minimum class complexity11.00
▷ Maximum class complexity30.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods2496.00%
▷ Protected methods00.00%
▷ Private methods14.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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 were not PNG files found in your plugin