84% upurr-store

Code Review | Upurr Store

WordPress plugin Upurr Store scored84%from 54 tests.

About plugin

  • Plugin page: upurr-store
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.2
  • WordPress version: 6.3.1
  • First release: Mar 20, 2022
  • Latest release: Apr 11, 2022
  • Number of updates: 5
  • Update frequency: every 4.8 days
  • Top authors: upurr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /593 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.34ms] Passed 4 tests

A check of server-side resources used by Upurr Store
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.38 ▲0.13
Dashboard /wp-admin3.31 ▼0.0347.79 ▼21.53
Posts /wp-admin/edit.php3.36 ▲0.0050.02 ▲3.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.73 ▼3.43
Media Library /wp-admin/upload.php3.24 ▲0.0033.91 ▼0.51

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

Browser metrics Passed 4 tests

A check of browser resources used by Upurr Store
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.45 ▲0.071.72 ▼0.4739.54 ▼1.84
Dashboard /wp-admin2,209 ▲215.09 ▲0.21110.13 ▲5.5240.12 ▼4.13
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0239.92 ▲2.6435.70 ▲2.70
Add New Post /wp-admin/post-new.php1,533 ▲1123.22 ▲0.10653.11 ▲22.4055.86 ▼2.96
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.0195.01 ▼2.3942.31 ▼4.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

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)
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
Please fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/upurr-store/includes/upurr-menus.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/upurr-store/includes/upurr-ajax-actions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/upurr-store/includes/upurr-scripts.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/upurr-store/includes/upurr-styles.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: upurr, upurr plugin, upurr store, upurr woocommerce, woocommerce plugin...

upurr-store/index.php 92% from 13 tests

This is the main PHP file of "Upurr Store" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("upurr-store.php" instead of "index.php")

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
Everything looks great! No dangerous files found in this plugin685 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2760358
PHP6587193
CSS1200110
SVG11024

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 2.67MB with 1.83MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png174.31KB58.03KB▼ 66.71%
assets/icon-128x128.png8.85KB3.60KB▼ 59.32%
assets/banner-1544x500-rtl.png768.52KB181.45KB▼ 76.39%
assets/banner-772x250-rtl.png174.31KB58.03KB▼ 66.71%
assets/screenshot-1.png277.55KB70.51KB▼ 74.60%