10% shopp-mobile-notifications

Code Review | Shopp + Mobile Notifications

WordPress plugin Shopp + Mobile Notifications scored 10% from 54 tests.

About plugin

  • Plugin page: shopp-mobile-noti...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: May 14, 2012
  • Latest release: Aug 25, 2014
  • Number of updates: 12
  • Update frequency: every 73.6 days
  • Top authors: lorenzocaum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,250 total downloads

Benchmarks

Plugin footprint 58% 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
  • Install procedure had errors
    • > Notice in wp-content/plugins/shopp-mobile-notifications/shopp-mobile-notifications.php+46
    Accessing static property Shopp_MobileNotifications::$from as non static

Server metrics [RAM: ▼1.80MB] [CPU: ▼190.10ms] Passed 4 tests

Server-side resources used by Shopp + Mobile Notifications
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.83 ▼0.897.50 ▼17.06
Dashboard /wp-admin1.85 ▼1.219.12 ▼36.51
Posts /wp-admin/edit.php1.85 ▼1.266.08 ▼45.49
Add New Post /wp-admin/post-new.php1.85 ▼3.586.65 ▼649.47
Media Library /wp-admin/upload.php1.85 ▼1.155.75 ▼28.93

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Shopp + Mobile Notifications
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▲10916.22 ▲0.299.07 ▲0.3553.92 ▲3.62
Dashboard /wp-admin2,975 ▲446.02 ▲0.09147.14 ▼3.27116.36 ▼11.84
Posts /wp-admin/edit.php2,741 ▲22.68 ▼0.0171.31 ▼0.24100.44 ▲14.31
Add New Post /wp-admin/post-new.php1,500 ▼18318.80 ▲0.11392.00 ▲6.33111.43 ▼3.29
Media Library /wp-admin/upload.php1,809 ▲25.00 ▼0.03151.87 ▼6.67127.43 ▲7.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/shopp-mobile-notifications/shopp-mobile-notifications.php+46
    Accessing static property Shopp_MobileNotifications::$from as non static

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/shopp-mobile-notifications/shopp-mobile-notifications.php:37

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)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Screenshot #1 (The Shopp + Mobile Notifications WordPress admin page.2. An additional view of the Shopp + Mobile Notifications WordPress admin page.3. Shopp + Mobile Notifications iPhone 4S demo.) image not found
Please take inspiration from this readme.txt

shopp-mobile-notifications/shopp-mobile-notifications.php Passed 13 tests

"Shopp + Mobile Notifications" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
115 characters long description:
Merchants who have a WordPress ecommerce store are notified of new orders via a text message to their mobile phone.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin339 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14855326
CSS13013

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ 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

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.41MB with 0.27MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png120.84KB41.22KB▼ 65.89%
screenshot-1.png169.34KB60.69KB▼ 64.16%
screenshot-3.png130.82KB42.26KB▼ 67.70%