89% pineparks-pseudo-shipping

Code Review | Pineparks Pseudo Shipping for Woocommerce

WordPress plugin Pineparks Pseudo Shipping for Woocommerce scored89%from 54 tests.

About plugin

  • Plugin page: pineparks-pseudo-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 5, 2023
  • Latest release: Mar 5, 2023
  • Number of updates: 5
  • Update frequency: every 5.0 days
  • Top authors: pineparks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /136 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Pineparks Pseudo Shipping for Woocommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.75 ▼0.15
Dashboard /wp-admin3.31 ▼0.0452.87 ▼15.26
Posts /wp-admin/edit.php3.36 ▲0.0047.56 ▼4.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.76 ▼3.22
Media Library /wp-admin/upload.php3.23 ▲0.0036.86 ▲0.88

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Pineparks Pseudo Shipping for Woocommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.16 ▲0.231.72 ▼0.0643.37 ▼2.09
Dashboard /wp-admin2,192 ▲125.52 ▼0.10101.89 ▲13.3944.00 ▲3.60
Posts /wp-admin/edit.php2,103 ▼01.98 ▲0.0234.37 ▼9.8034.92 ▼0.72
Add New Post /wp-admin/post-new.php1,526 ▼023.26 ▼0.35650.06 ▼51.6158.88 ▲7.14
Media Library /wp-admin/upload.php1,400 ▼34.19 ▼0.06100.45 ▼10.5843.40 ▼0.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

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

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention: Please take inspiration from this readme.txt

pineparks-pseudo-shipping/plugin.php 77% from 13 tests

The primary PHP file in "Pineparks Pseudo Shipping for Woocommerce" version 1.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("pineparks-pseudo-shipping.php" instead of "plugin.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin121 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP54024121

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity2.33
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin