10% shopp-video-tutorials

Code Review | Shopp + Video Tutorials

WordPress plugin Shopp + Video Tutorials scored10%from 54 tests.

About plugin

  • Plugin page: shopp-video-tutor...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.2
  • WordPress version: 6.3.1
  • First release: Dec 7, 2012
  • Latest release: Aug 25, 2014
  • Number of updates: 9
  • Update frequency: every 108.4 days
  • Top authors: lorenzocaum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,436 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/shopp-video-tutorials/shopp-video-tutorials.php+42
    Accessing static property Shopp_Video_Tutorials::$name as non static

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

Analyzing server-side resources used by Shopp + Video Tutorials
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.90 ▼38.51
Dashboard /wp-admin2.05 ▼1.265.73 ▼43.89
Posts /wp-admin/edit.php2.05 ▼1.315.99 ▼43.84
Add New Post /wp-admin/post-new.php2.05 ▼3.846.98 ▼91.32
Media Library /wp-admin/upload.php2.05 ▼1.186.02 ▼29.57

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Shopp + Video Tutorials
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.35 ▼0.011.99 ▲0.2244.03 ▼4.01
Dashboard /wp-admin2,197 ▲235.54 ▼0.0484.55 ▼17.8439.97 ▼6.76
Posts /wp-admin/edit.php2,102 ▲52.02 ▼0.0036.43 ▲0.5634.28 ▼2.20
Add New Post /wp-admin/post-new.php1,528 ▲223.21 ▲0.17676.34 ▲58.9949.50 ▼8.38
Media Library /wp-admin/upload.php1,402 ▼14.24 ▲0.03112.26 ▲6.9548.67 ▲3.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/shopp-video-tutorials/shopp-video-tutorials.php+42
    Accessing static property Shopp_Video_Tutorials::$name as non static
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/shopp-video-tutorials/shopp-video-tutorials.php:34

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (The Shopp + Video Tutorials WordPress admin page.), #2 (An additional view of the Shopp + Video Tutorials WordPress admin page.)
The official readme.txt is a good inspiration

shopp-video-tutorials/shopp-video-tutorials.php Passed 13 tests

The principal PHP file in "Shopp + Video Tutorials" v. 1.3 is loaded by WordPress automatically on each request
70 characters long description:
Learn how to use the Shopp ecommerce plugin from your WordPress admin.

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
Everything looks great! No dangerous files found in this plugin345 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14222332
CSS13013

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.37MB with 0.24MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png275.66KB102.99KB▼ 62.64%
screenshot-1.png107.90KB37.67KB▼ 65.08%