84% invelity-gls-parcelshop

Code Review | Invelity GLS ParcelShop

WordPress plugin Invelity GLS ParcelShop scored84%from 54 tests.

About plugin

  • Plugin page: invelity-gls-parc...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 6, 2020
  • Latest release: Jul 25, 2022
  • Number of updates: 6
  • Update frequency: every 111.3 days
  • Top authors: invelity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /916 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.30ms] Passed 4 tests

Analyzing server-side resources used by Invelity GLS ParcelShop
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0545.37 ▲4.62
Dashboard /wp-admin3.39 ▲0.09880.55 ▲827.05
Posts /wp-admin/edit.php3.37 ▲0.0151.79 ▲0.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.83 ▼4.07
Media Library /wp-admin/upload.php3.24 ▲0.0137.51 ▼0.06

Server storage [IO: ▲0.27MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Invelity GLS ParcelShop: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲7513.25 ▼1.122.06 ▲0.2644.25 ▼1.49
Dashboard /wp-admin2,224 ▲214.80 ▼0.30115.13 ▲12.8643.21 ▼1.54
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0038.13 ▲0.6438.86 ▲3.14
Add New Post /wp-admin/post-new.php1,529 ▼1217.62 ▼0.59677.48 ▲65.5147.12 ▼3.22
Media Library /wp-admin/upload.php1,400 ▲34.29 ▼0.0299.70 ▼1.2242.70 ▼1.29

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • 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 Warning
      include_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/invelity-gls-parcelshop/invelity-gls-parcelshop.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/invelity-gls-parcelshop/invelity-gls-parcelshop.php:17
    • > PHP Warning
      include_once(): Failed opening 'ABSPATH/wp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/invelity-gls-parcelshop/invelity-gls-parcelshop.php on line 15
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/invelity-gls-parcelshop/invelity-gls-parcelshop.php on line 15

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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Contributors: Plugin contributors not specified
Please take inspiration from this readme.txt

invelity-gls-parcelshop/invelity-gls-parcelshop.php Passed 13 tests

Analyzing the main PHP file in "Invelity GLS ParcelShop" version 1.0.2
30 characters long description:
Plugin Invelity GLS ParcelShop

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin2,937 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
CSS3112261,063
JavaScript382401,040
PHP1228067823
SVG10011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.89
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity1.74
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods41
▷ Static methods24.88%
▷ Public methods3380.49%
▷ Protected methods00.00%
▷ Private methods819.51%
Functions23
▷ Named functions1878.26%
▷ Anonymous functions521.74%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/map/marker-balikomat.png2.14KB1.29KB▼ 39.59%
public/img/gls-logo.png13.28KB12.81KB▼ 3.52%
public/img/map/marker-parcel.png2.17KB1.29KB▼ 40.40%