89% pokupo

Code Review | Pokupo Woocommerce gateway

WordPress plugin Pokupo Woocommerce gateway scored89%from 54 tests.

About plugin

  • Plugin page: pokupo
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 25, 2020
  • Latest release: May 25, 2020
  • Number of updates: 14
  • Update frequency: every 4.4 days
  • Top authors: pokupo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /552 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼0.13ms] Passed 4 tests

This is a short check of server-side resources used by Pokupo Woocommerce gateway
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.64 ▼0.00
Dashboard /wp-admin3.36 ▲0.0655.61 ▲8.52
Posts /wp-admin/edit.php3.41 ▲0.0647.67 ▼3.04
Add New Post /wp-admin/post-new.php5.95 ▲0.0698.28 ▲3.74
Media Library /wp-admin/upload.php3.29 ▲0.0634.84 ▼1.24

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pokupo Woocommerce gateway
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.18 ▼0.182.02 ▲0.2044.06 ▼2.63
Dashboard /wp-admin2,198 ▲215.62 ▼0.0494.81 ▲7.3246.19 ▲4.90
Posts /wp-admin/edit.php2,097 ▼02.03 ▲0.0535.18 ▼7.3836.84 ▼1.86
Add New Post /wp-admin/post-new.php1,539 ▲618.35 ▼4.50631.55 ▼41.4673.91 ▲17.50
Media Library /wp-admin/upload.php1,391 ▼94.21 ▲0.05102.22 ▼10.1542.68 ▼5.64

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

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 90% 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
Please fix the following attributes:
  • Contributors: Plugin contributors field is missing
The official readme.txt is a good inspiration

pokupo/wc-pokupo.php 85% from 13 tests

"Pokupo Woocommerce gateway" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "4.0")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pokupo.php" instead of "wc-pokupo.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
Everything looks great! No dangerous files found in this plugin305 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16140304
SVG1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity4.22
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
No PNG images were found in this plugin