10% shopp-ology

Code Review | Shopp + Ology

WordPress plugin Shopp + Ology scored10%from 54 tests.

About plugin

  • Plugin page: shopp-ology
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 29, 2012
  • Latest release: Aug 25, 2014
  • Number of updates: 10
  • Update frequency: every 78.7 days
  • Top authors: lorenzocaum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,309 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/shopp-ology/shopp-ology.php+42
    Accessing static property Shopp_Ology::$yourname as non static

Server metrics [RAM: ▼1.81MB] [CPU: ▼50.45ms] Passed 4 tests

Server-side resources used by Shopp + Ology
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.296.70 ▼34.29
Dashboard /wp-admin2.19 ▼1.116.65 ▼42.67
Posts /wp-admin/edit.php2.19 ▼1.166.89 ▼40.15
Add New Post /wp-admin/post-new.php2.19 ▼3.696.20 ▼84.70
Media Library /wp-admin/upload.php2.19 ▼1.046.29 ▼29.50

Server storage [IO: ▲0.24MB] [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, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Shopp + Ology: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4514.42 ▲0.031.79 ▼0.1443.97 ▼6.82
Dashboard /wp-admin2,208 ▲264.85 ▼1.01115.65 ▲14.9442.41 ▼2.10
Posts /wp-admin/edit.php2,073 ▼192.02 ▲0.0535.45 ▼5.8934.86 ▼1.79
Add New Post /wp-admin/post-new.php1,530 ▲1623.23 ▲5.57668.80 ▼31.1062.36 ▲5.60
Media Library /wp-admin/upload.php1,390 ▼14.14 ▼0.0897.85 ▼8.3140.65 ▼3.96

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
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/shopp-ology/shopp-ology.php+42
    Accessing static property Shopp_Ology::$yourname as non static
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 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-ology/shopp-ology.php:34

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Screenshot #1 (The Shopp + Ology WordPress admin page.2. An additional view of the Shopp + Ology WordPress admin page.) image missing
The official readme.txt is a good inspiration

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

"Shopp + Ology" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
103 characters long description:
Generate information about your hosting environment to assist with troubleshooting WordPress and Shopp.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin413 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14822400
CSS13013

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity12.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.20MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png60.41KB19.74KB▼ 67.32%
screenshot-1.png145.85KB50.06KB▼ 65.68%