83% simple-goods

Code Review | Simple Goods

WordPress plugin Simple Goods scored 83% from 54 tests.

About plugin

  • Plugin page: simple-goods
  • Plugin version: 0.13
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.8
  • WordPress version: 6.3.1
  • First release: Apr 30, 2013
  • Latest release: Aug 8, 2018
  • Number of updates: 10
  • Update frequency: every 192.7 days
  • Top authors: SimpleGoods (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,433 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.52ms] Passed 4 tests

Server-side resources used by Simple Goods
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0138.43 ▼1.99
Dashboard /wp-admin3.31 ▲0.0047.36 ▼1.40
Posts /wp-admin/edit.php3.36 ▲0.0046.38 ▲0.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.70 ▼10.98
Media Library /wp-admin/upload.php3.23 ▲0.0032.50 ▲0.31

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Goods
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.33 ▼1.055.27 ▲3.2746.07 ▲1.50
Dashboard /wp-admin2,209 ▲244.86 ▼0.2397.81 ▼24.2141.76 ▼3.69
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0534.47 ▲0.5432.59 ▼0.35
Add New Post /wp-admin/post-new.php1,519 ▼023.30 ▲0.23629.00 ▼43.8152.72 ▼1.59
Media Library /wp-admin/upload.php1,388 ▼04.24 ▼0.0596.71 ▼11.9641.21 ▼2.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/simple-goods/simplegoods.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Contributors: The plugin tags were not defined
  • Donate link: Invalid URI found ("")
  • Contributors: The plugin contributors field is missing
You can take inspiration from this readme.txt

simple-goods/simplegoods.php 85% from 13 tests

The main file in "Simple Goods" v. 0.13 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-goods.php" instead of "simplegoods.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 186 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected17 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16916
JavaScript1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin