10% shopp-contactology

Code Review | Shopp + Contactology

WordPress plugin Shopp + Contactology scored10%from 54 tests.

About plugin

  • Plugin page: shopp-contactology
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 22, 2012
  • Latest release: Aug 25, 2014
  • Number of updates: 12
  • Update frequency: every 73.8 days
  • Top authors: lorenzocaum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,311 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/shopp-contactology/shopp-contactology.php+46
    Accessing static property Shopp_Contactology::$api_key as non static

Server metrics [RAM: ▼2.78MB] [CPU: ▼453.43ms] Passed 4 tests

A check of server-side resources used by Shopp + Contactology
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7310.12 ▼41.47
Dashboard /wp-admin2.76 ▼6.6611.23 ▼1,645.81
Posts /wp-admin/edit.php2.76 ▼0.609.44 ▼44.09
Add New Post /wp-admin/post-new.php2.76 ▼3.138.47 ▼82.34
Media Library /wp-admin/upload.php2.76 ▼0.487.91 ▼32.13

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Shopp + Contactology
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.34 ▼0.112.14 ▼0.0456.98 ▲5.78
Dashboard /wp-admin2,200 ▲55.58 ▼0.05103.91 ▲7.2940.97 ▲1.79
Posts /wp-admin/edit.php2,105 ▲52.01 ▲0.0235.17 ▼6.8729.18 ▼5.95
Add New Post /wp-admin/post-new.php1,410 ▼11618.01 ▼5.24687.82 ▲30.1259.56 ▲11.41
Media Library /wp-admin/upload.php1,399 ▼14.13 ▲0.01135.72 ▲17.7148.67 ▲4.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/shopp-contactology/shopp-contactology.php+46
    Accessing static property Shopp_Contactology::$api_key as non static
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

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)
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/shopp-contactology/shopp-contactology.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Screenshot #1 (The Shopp + Contactology WordPress admin page.2. An additional view of the Shopp + Contactology WordPress admin page.) image required
You can take inspiration from this readme.txt

shopp-contactology/shopp-contactology.php Passed 13 tests

The principal PHP file in "Shopp + Contactology" v. 1.3 is loaded by WordPress automatically on each request
137 characters long description:
Customers who opt-in to email marketing from your WordPress ecommerce site during checkout are added to a specified list on Contactology.

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
Everything looks great! No dangerous files found in this plugin1,436 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26502,1121,423
CSS13013

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.02
Average class complexity9.00
▷ Minimum class complexity5.00
▷ Maximum class complexity13.00
Average method complexity1.10
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods160
▷ Static methods10.62%
▷ Public methods15999.38%
▷ Protected methods10.62%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.45MB with 0.31MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/shopp-email-marketing-opt-in.png25.97KB7.39KB▼ 71.54%
screenshot-1.png133.58KB47.12KB▼ 64.73%
screenshot-2.png303.53KB90.01KB▼ 70.35%