83% teezily-plus-shipping-method

Code Review | Teezily plus for WooCommerce

WordPress plugin Teezily plus for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: teezily-plus-ship...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 15, 2022
  • Latest release: Sep 15, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: teezilyplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /155 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

A check of server-side resources used by Teezily plus for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0048.86 ▲9.08
Dashboard /wp-admin3.31 ▼0.0447.61 ▼14.39
Posts /wp-admin/edit.php3.36 ▲0.0048.23 ▼9.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.23 ▼14.17
Media Library /wp-admin/upload.php3.23 ▲0.0039.41 ▲1.03

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Teezily plus for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.27 ▲0.062.10 ▲0.1543.52 ▼4.79
Dashboard /wp-admin2,192 ▲155.62 ▼0.0486.05 ▼8.7641.45 ▼2.39
Posts /wp-admin/edit.php2,100 ▼02.06 ▲0.0741.18 ▲4.0836.10 ▼0.04
Add New Post /wp-admin/post-new.php1,549 ▲1423.02 ▼0.32663.75 ▼23.2952.49 ▼4.12
Media Library /wp-admin/upload.php1,397 ▼64.16 ▼0.09101.09 ▼13.3844.47 ▼3.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/teezily-plus-shipping-method/includes/teezilyplus-shipping-method.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/teezily-plus-shipping-method/teezilyplus.php:11

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 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Contributors: Plugin contributors field is missing
The official readme.txt might help

teezily-plus-shipping-method/teezilyplus.php 85% from 13 tests

Analyzing the main PHP file in "Teezily plus for WooCommerce" version 0.1.0
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("teezily-plus-shipping-method.php" instead of "teezilyplus.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 290 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin217 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35431217

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity18.00
▷ Minimum class complexity3.00
▷ Maximum class complexity33.00
Average method complexity4.78
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/teezilyplus_logo.png18.50KB20.81KB0.00%