84% invition-print-ship-zakeke

Code Review | Printeers Print & Ship Zakeke Extension

WordPress plugin Printeers Print & Ship Zakeke Extension scored84%from 54 tests.

About plugin

  • Plugin page: invition-print-sh...
  • Plugin version: 1.5.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.0
  • WordPress version: 6.3.1
  • First release: Dec 20, 2019
  • Latest release: Dec 16, 2022
  • Number of updates: 15
  • Update frequency: every 72.8 days
  • Top authors: invition (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,218 total downloads

Benchmarks

Plugin footprint 83% 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Printeers Print & Ship Zakeke Extension
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.63 ▲2.44
Dashboard /wp-admin3.33 ▲0.0269.91 ▲15.07
Posts /wp-admin/edit.php3.38 ▲0.0260.12 ▲9.55
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.87 ▼5.78
Media Library /wp-admin/upload.php3.25 ▲0.0237.53 ▼1.93

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Printeers Print & Ship Zakeke Extension
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.28 ▼0.512.03 ▲0.0249.12 ▲6.71
Dashboard /wp-admin2,198 ▲215.63 ▼0.0284.88 ▼6.7139.94 ▼3.74
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0139.39 ▼1.9037.07 ▲1.36
Add New Post /wp-admin/post-new.php1,529 ▲123.26 ▲0.17658.30 ▼43.2549.74 ▼1.68
Media Library /wp-admin/upload.php1,403 ▲34.23 ▲0.0699.41 ▼13.1846.21 ▲0.78

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • ips_zakeke_version
    • widget_recent-comments

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)
Good news, no errors were detected

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
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/invition-print-ship-zakeke/classes/class-products.php
    • > /wp-content/plugins/invition-print-ship-zakeke/classes/class-client.php
    • > /wp-content/plugins/invition-print-ship-zakeke/classes/class-orders.php
    • > /wp-content/plugins/invition-print-ship-zakeke/invition-print-and-ship-zakeke.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: invition, phone case, printeers, dropship, zakeke...

invition-print-ship-zakeke/invition-print-and-ship-zakeke.php 92% from 13 tests

The main file in "Printeers Print & Ship Zakeke Extension" v. 1.5.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("invition-print-ship-zakeke.php" instead of "invition-print-and-ship-zakeke.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin643 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5165266643

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity17.33
▷ Minimum class complexity11.00
▷ Maximum class complexity24.00
Average method complexity5.45
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods763.64%
▷ Protected methods00.00%
▷ Private methods436.36%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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