78% qiriman

Code Review | Qiriman

WordPress plugin Qiriman scored 78% from 54 tests.

About plugin

  • Plugin page: qiriman
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.1.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Jan 8, 2019
  • Latest release: Feb 12, 2019
  • Number of updates: 14
  • Update frequency: every 2.6 days
  • Top authors: idwebmobile (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,749 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼0.95ms] Passed 4 tests

Server-side resources used by Qiriman
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1540.20 ▲2.16
Dashboard /wp-admin3.44 ▲0.1447.75 ▼1.77
Posts /wp-admin/edit.php3.56 ▲0.2050.98 ▲5.90
Add New Post /wp-admin/post-new.php6.04 ▲0.1684.09 ▼4.45
Media Library /wp-admin/upload.php3.37 ▲0.1433.43 ▲0.24

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Qiriman
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.22 ▼0.761.78 ▲0.1343.49 ▲2.82
Dashboard /wp-admin2,208 ▲164.86 ▼0.04108.20 ▼3.1940.56 ▼5.39
Posts /wp-admin/edit.php2,091 ▲52.03 ▼0.0237.77 ▲2.4136.12 ▲0.61
Add New Post /wp-admin/post-new.php1,549 ▲1418.47 ▼4.76586.77 ▼111.6854.15 ▼1.41
Media Library /wp-admin/upload.php1,393 ▲24.22 ▲0.0296.89 ▲0.5944.15 ▼0.38

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/qiriman/admin/partials/qiriman-admin-display.php
    • > /wp-content/plugins/qiriman/public/partials/qiriman-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/qiriman/includes/class-qiriman-shipping.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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:
  • Donate link: Invalid URI found ("")
  • Screenshots: These screenshots need descriptions #1, #2 in qiriman/assets to your readme.txt
You can look at the official readme.txt

qiriman/qiriman.php Passed 13 tests

Analyzing the main PHP file in "Qiriman" version 1.0.4
98 characters long description:
Qiriman is a WooCommerce plugin that provide shipping method from various expedition in Indonesia.

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
No dangerous file extensions were detected1,122 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13219615736
JavaScript24431371
CSS25815

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity7.75
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods41
▷ Static methods24.88%
▷ Public methods3380.49%
▷ Protected methods00.00%
▷ Private methods819.51%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin