84% shoppingmalin

Code Review | ShoppingMalin

WordPress plugin ShoppingMalin scored84%from 54 tests.

About plugin

  • Plugin page: shoppingmalin
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.2-4.5
  • WordPress version: 6.3.1
  • First release: Apr 22, 2016
  • Latest release: Apr 22, 2016
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: multiclic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,205 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.07ms] Passed 4 tests

An overview of server-side resources used by ShoppingMalin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.98 ▼0.50
Dashboard /wp-admin3.34 ▼0.0052.51 ▼17.14
Posts /wp-admin/edit.php3.40 ▲0.0452.52 ▼1.38
Add New Post /wp-admin/post-new.php5.93 ▲0.04107.30 ▲17.82
Media Library /wp-admin/upload.php3.27 ▲0.0434.13 ▲2.74
ShoppingMalin /wp-admin/options-general.php?page=shoppingmalin3.2431.57

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for ShoppingMalin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.74 ▲0.291.88 ▲0.2443.44 ▲3.04
Dashboard /wp-admin2,225 ▲255.04 ▼0.86101.02 ▼16.5043.55 ▲5.47
Posts /wp-admin/edit.php2,104 ▲42.04 ▼0.0240.76 ▼1.0036.74 ▼1.71
Add New Post /wp-admin/post-new.php1,550 ▲423.12 ▼0.22672.83 ▼0.1057.37 ▲6.96
Media Library /wp-admin/upload.php1,398 ▲14.24 ▲0.0398.56 ▼13.0445.23 ▼2.21
ShoppingMalin /wp-admin/options-general.php?page=shoppingmalin8342.1028.5926.12

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/shoppingmalin/config.php

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 93% 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:
  • Tags: There are too many tags (16 tag instead of maximum 10)
The official readme.txt might help

shoppingmalin/shoppingmalin.php 92% from 13 tests

"ShoppingMalin" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 158 characters long)

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
No dangerous file extensions were detected2,827 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2137481,824
PHP211776698
CSS2452291
HTML11014

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon-help.png0.83KB0.90KB0.00%
img/entete.png18.29KB7.63KB▼ 58.26%