87% woo-tcs-extension

Code Review | WooTcsShipmentMaker

WordPress plugin WooTcsShipmentMaker scored87%from 54 tests.

About plugin

  • Plugin page: woo-tcs-extension
  • Plugin version: 0.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2+
  • WordPress version: 6.3.1
  • First release: Oct 17, 2017
  • Latest release: Oct 17, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: qasimgulzar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,526 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by WooTcsShipmentMaker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.68 ▼2.02
Dashboard /wp-admin3.35 ▲0.0050.15 ▼16.81
Posts /wp-admin/edit.php3.46 ▲0.1150.47 ▲0.91
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.04 ▼4.53
Media Library /wp-admin/upload.php3.27 ▲0.0438.33 ▼0.79

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
These are issues you should consider
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/woo-tcs-extension/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooTcsShipmentMaker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲4813.36 ▼1.441.77 ▼0.5743.96 ▲5.11
Dashboard /wp-admin2,222 ▲225.83 ▼0.06103.42 ▼14.7040.68 ▼4.89
Posts /wp-admin/edit.php2,104 ▲72.00 ▼0.0236.08 ▼1.0134.67 ▼0.60
Add New Post /wp-admin/post-new.php1,549 ▲1623.24 ▼0.14633.24 ▼49.8669.86 ▲14.10
Media Library /wp-admin/upload.php1,407 ▲74.17 ▼0.1299.57 ▼12.5842.21 ▼5.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 69% from 29 tests

readme.txt 63% from 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
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: ""
  • Tags: There were no tags found
  • Screenshots: These screenshots do not have images: #1 (![settings screenshot](settings.png?raw=true "Settings")), #2 (![Orders screenshot](order-screen.png?raw=true "Order Items"))
  • Tested up to: Invalid plugin version format
  • Stable tag: Empty string
  • Requires at least: Invalid plugin version format
You can look at the official readme.txt

woo-tcs-extension/index.php 77% from 13 tests

"WooTcsShipmentMaker" version 0.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-tcs-extension.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected252 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33563223
Markdown121029

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods8
▷ Static methods562.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
settings.png26.63KB10.95KB▼ 58.86%
order-screen.png31.27KB12.63KB▼ 59.61%