10% shopp-zendesk

Code Review | Shopp + Zendesk

WordPress plugin Shopp + Zendesk scored 10% from 54 tests.

About plugin

  • Plugin page: shopp-zendesk
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.2
  • WordPress version: 6.3.1
  • First release: Dec 1, 2011
  • Latest release: Aug 25, 2014
  • Number of updates: 12
  • Update frequency: every 83.3 days
  • Top authors: lorenzocaum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,994 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/shopp-zendesk/shopp-zendesk.php+48
    Accessing static property Shopp_Zendesk::$account as non static

Server metrics [RAM: ▼1.96MB] [CPU: ▼50.04ms] Passed 4 tests

An overview of server-side resources used by Shopp + Zendesk
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.96 ▼36.40
Dashboard /wp-admin2.05 ▼1.266.57 ▼40.79
Posts /wp-admin/edit.php2.05 ▼1.316.26 ▼41.35
Add New Post /wp-admin/post-new.php2.05 ▼3.846.55 ▼81.61
Media Library /wp-admin/upload.php2.05 ▼1.186.11 ▼28.46

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Shopp + Zendesk
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.61 ▼0.724.23 ▲2.3742.02 ▲1.89
Dashboard /wp-admin2,208 ▲205.87 ▲1.01107.00 ▲0.7841.75 ▼3.45
Posts /wp-admin/edit.php2,094 ▲232.01 ▼0.0039.46 ▲2.4835.46 ▼1.16
Add New Post /wp-admin/post-new.php1,539 ▲2018.47 ▼4.58592.44 ▼65.2958.06 ▲4.57
Media Library /wp-admin/upload.php1,393 ▲24.21 ▲0.02103.33 ▲5.2846.64 ▲2.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/shopp-zendesk/shopp-zendesk.php+48
    Accessing static property Shopp_Zendesk::$account as non static
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/shopp-zendesk/shopp-zendesk.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Screenshots: Add images for these screenshots: #1 (The Shopp + Zendesk WordPress admin page.), #2 (An additional view of the Shopp + Zendesk WordPress admin page.)
You can look at the official readme.txt

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

"Shopp + Zendesk" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
107 characters long description:
Customers who order from your WordPress ecommerce store are added to your Zendesk help desk after checkout.

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
Success! There were no dangerous files found in this plugin544 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP28780531
CSS13013

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity26.00
▷ Minimum class complexity12.00
▷ Maximum class complexity40.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods14.55%
▷ Public methods1777.27%
▷ Protected methods00.00%
▷ Private methods522.73%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants18100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.45MB with 0.29MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png225.48KB76.25KB▼ 66.18%
screenshot-1.png232.95KB87.32KB▼ 62.52%