10% shopp-mediaburst

Code Review | Shopp + Mediaburst

WordPress plugin Shopp + Mediaburst scored10%from 54 tests.

About plugin

  • Plugin page: shopp-mediaburst
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.2
  • WordPress version: 6.3.1
  • First release: May 30, 2012
  • Latest release: Aug 25, 2014
  • Number of updates: 13
  • Update frequency: every 62.9 days
  • Top authors: lorenzocaum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,289 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/shopp-mediaburst/shopp-mediaburst.php+50
    Accessing static property Shopp_Mediaburst::$username as non static

Server metrics [RAM: ▼1.78MB] [CPU: ▼53.94ms] Passed 4 tests

This is a short check of server-side resources used by Shopp + Mediaburst
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.20 ▼1.265.82 ▼30.85
Dashboard /wp-admin2.22 ▼1.086.68 ▼45.09
Posts /wp-admin/edit.php2.23 ▼1.138.29 ▼48.38
Add New Post /wp-admin/post-new.php2.23 ▼3.666.82 ▼91.43
Media Library /wp-admin/upload.php2.23 ▼1.007.62 ▼27.44

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

Input-output and database impact of this plugin
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
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Shopp + Mediaburst
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲3113.25 ▼1.371.68 ▼0.2844.12 ▲1.31
Dashboard /wp-admin2,208 ▲205.88 ▲0.97107.01 ▼2.8148.60 ▲3.33
Posts /wp-admin/edit.php2,091 ▼12.02 ▼0.0341.88 ▲0.5839.03 ▼0.14
Add New Post /wp-admin/post-new.php1,394 ▼12618.32 ▼4.80606.73 ▼85.5946.77 ▼13.55
Media Library /wp-admin/upload.php1,393 ▲24.13 ▼0.01103.87 ▼0.2247.25 ▲1.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/shopp-mediaburst/shopp-mediaburst.php+50
    Accessing static property Shopp_Mediaburst::$username as non static
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please 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 apply_filters() in wp-content/plugins/shopp-mediaburst/shopp-mediaburst.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (The Shopp + Mediaburst WordPress admin page.), #2 (An additional view of the Shopp + Mediaburst WordPress admin page.), #3 (Shopp + Mediaburst iPhone 4S demo.)
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

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

"Shopp + Mediaburst" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
134 characters long description:
Merchants who have a WordPress ecommerce store are notified of new orders via a text message to their mobile phone through Mediaburst.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin637 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2100204624
CSS13013

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity18.00
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods31
▷ Static methods13.23%
▷ Public methods1754.84%
▷ Protected methods13.23%
▷ Private methods1341.94%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.46MB with 0.31MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png129.26KB42.63KB▼ 67.02%
screenshot-3.png110.21KB33.74KB▼ 69.39%
screenshot-1.png235.03KB85.41KB▼ 63.66%