84% cart66-cloud-aweber

Code Review | Cart66 Cloud Aweber

WordPress plugin Cart66 Cloud Aweber scored84%from 54 tests.

About plugin

  • Plugin page: cart66-cloud-aweber
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 6.3.1
  • First release: Jul 27, 2015
  • Latest release: Aug 23, 2016
  • Number of updates: 8
  • Update frequency: every 49.4 days
  • Top authors: reality66 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,246 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Cart66 Cloud Aweber
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.30 ▼2.90
Dashboard /wp-admin3.31 ▼0.0351.91 ▼13.94
Posts /wp-admin/edit.php3.36 ▲0.0148.70 ▼2.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.42 ▼15.23
Media Library /wp-admin/upload.php3.23 ▲0.0035.75 ▼2.03

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Cart66 Cloud Aweber
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.38 ▼0.261.87 ▼0.1047.63 ▲2.60
Dashboard /wp-admin2,204 ▲245.66 ▼0.0190.83 ▲1.6243.39 ▲4.33
Posts /wp-admin/edit.php2,107 ▲72.06 ▲0.0336.11 ▼1.0433.91 ▼1.54
Add New Post /wp-admin/post-new.php1,532 ▲617.46 ▼0.03676.71 ▼7.9553.52 ▲1.14
Media Library /wp-admin/upload.php1,406 ▲34.22 ▼0.0997.14 ▼11.2142.41 ▼4.29

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'CC_Admin_Setting' not found in wp-content/plugins/cart66-cloud-aweber/includes/admin/class-ca-admin-settings-general.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Show your Aweber sign up form when your customers view their receipts), #2 (Plugin settings)
You can take inspiration from this readme.txt

cart66-cloud-aweber/cart66-aweber.php 92% from 13 tests

The principal PHP file in "Cart66 Cloud Aweber" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cart66-cloud-aweber.php" instead of "cart66-aweber.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected417 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP77982272
JavaScript32719135
CSS11010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity5.20
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.95
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods22
▷ Static methods1150.00%
▷ Public methods2195.45%
▷ Protected methods14.55%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
3 PNG files occupy 0.16MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png96.77KB33.76KB▼ 65.12%
resources/img/x.png1.04KB1.25KB0.00%
screenshot-1.png61.01KB22.92KB▼ 62.44%