79% safeshop

Code Review | Safe.Shop

WordPress plugin Safe.Shop scored79%from 54 tests.

About plugin

  • Plugin page: safeshop
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: Oct 3, 2019
  • Latest release: Nov 6, 2019
  • Number of updates: 7
  • Update frequency: every 16.3 days
  • Top authors: ecommercefoundation (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /571 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by Safe.Shop
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.26 ▼4.78
Dashboard /wp-admin3.32 ▲0.0145.26 ▼5.37
Posts /wp-admin/edit.php3.37 ▲0.0145.88 ▼4.47
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.30 ▼13.84
Media Library /wp-admin/upload.php3.24 ▲0.0135.85 ▼0.44
Safeshop /wp-admin/options-general.php?page=safeshop3.1833.23

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Safe.Shop
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.22 ▼1.221.61 ▼0.2938.33 ▼6.48
Dashboard /wp-admin2,217 ▲295.86 ▼0.1195.82 ▼19.8339.02 ▼7.88
Posts /wp-admin/edit.php2,100 ▲112.01 ▲0.0039.53 ▲1.3137.76 ▲6.59
Add New Post /wp-admin/post-new.php1,521 ▲723.48 ▲5.98658.24 ▼24.5152.15 ▲0.39
Media Library /wp-admin/upload.php1,396 ▲114.24 ▲0.0494.76 ▼25.4144.20 ▼3.82
Safeshop /wp-admin/options-general.php?page=safeshop8592.0426.6424.65

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=safeshop
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=safeshop
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/safeshop/safeshop.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: consumer trust, safeshop, trust seal, online security badge, trustmark...

safeshop/safeshop.php Passed 13 tests

This is the main PHP file of "Safe.Shop" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
36 characters long description:
Safe shop logo Configuration module.

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
There were no executable files found in this plugin196 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1187196

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.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
PNG images were not found in this plugin