90% marketplace-items

Code Review | Marketplace Items

WordPress plugin Marketplace Items scored90%from 54 tests.

About plugin

  • Plugin page: marketplace-items
  • Plugin version: 1.5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: May 15, 2013
  • Latest release: Oct 26, 2023
  • Number of updates: 19
  • Update frequency: every 200.8 days
  • Top authors: butterflymedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /5,679 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.11ms] Passed 4 tests

A check of server-side resources used by Marketplace Items
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.17 ▼2.04
Dashboard /wp-admin3.34 ▲0.0441.66 ▼7.07
Posts /wp-admin/edit.php3.40 ▲0.0442.38 ▼6.76
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.79 ▼0.58
Media Library /wp-admin/upload.php3.27 ▲0.0432.37 ▲0.19
Envato Marketplace /wp-admin/options-general.php?page=mi3.2331.09

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Marketplace Items
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.37 ▼0.201.59 ▲0.0939.92 ▼0.57
Dashboard /wp-admin2,204 ▲275.61 ▼0.0783.44 ▼1.5538.62 ▼3.86
Posts /wp-admin/edit.php2,106 ▲62.02 ▲0.0533.78 ▼2.2933.20 ▼3.16
Add New Post /wp-admin/post-new.php1,535 ▲922.80 ▼0.85573.58 ▼112.7153.80 ▼1.42
Media Library /wp-admin/upload.php1,409 ▲94.19 ▲0.0194.83 ▼14.7441.47 ▼4.52
Envato Marketplace /wp-admin/options-general.php?page=mi9601.9921.8446.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
Please take inspiration from this readme.txt

marketplace-items/marketplace-items.php Passed 13 tests

The principal PHP file in "Marketplace Items" v. 1.5.3 is loaded by WordPress automatically on each request
66 characters long description:
Display your Envato marketplace portfolio inside a post or a page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin227 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24930178
CSS23349

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin