89% wooshop-piraeus-bank-gateway

Code Review | Wooshop Piraeus Bank Gateway

WordPress plugin Wooshop Piraeus Bank Gateway scored 89% from 54 tests.

About plugin

  • Plugin page: wooshop-piraeus-b...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 13, 2019
  • Latest release: Jun 14, 2019
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: emcsqr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 651 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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.94ms] Passed 4 tests

A check of server-side resources used by Wooshop Piraeus Bank Gateway
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0141.77 ▲1.56
Dashboard /wp-admin3.31 ▲0.0148.01 ▲0.03
Posts /wp-admin/edit.php3.36 ▲0.0043.13 ▼1.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.93 ▼15.69
Media Library /wp-admin/upload.php3.23 ▲0.0033.59 ▲0.95

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Wooshop Piraeus Bank Gateway
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.28 ▼1.104.25 ▲2.1044.46 ▼5.26
Dashboard /wp-admin2,209 ▲175.89 ▲0.9297.46 ▼11.5039.67 ▼2.27
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0532.36 ▼2.3934.17 ▲0.24
Add New Post /wp-admin/post-new.php1,514 ▼917.68 ▼5.44618.55 ▲16.3752.85 ▼2.60
Media Library /wp-admin/upload.php1,388 ▲34.18 ▼0.0897.88 ▼13.9741.96 ▼7.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 87% 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:
  • Contributors: The plugin contributors field is missing
  • Screenshots: Screenshot #2 (Back-end Settings English) image not found
The official readme.txt might help

wooshop-piraeus-bank-gateway/wooshop-piraeus.php 85% from 13 tests

Analyzing the main PHP file in "Wooshop Piraeus Bank Gateway" version 1.0.1
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wooshop-piraeus-bank-gateway.php" instead of "wooshop-piraeus.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 349 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected590 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP156165590

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity99.00
▷ Minimum class complexity99.00
▷ Maximum class complexity99.00
Average method complexity6.44
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected