89% gateway-mellat-bank-for-camptix

Code Review | Gateway Mellat Bank for CampTix

WordPress plugin Gateway Mellat Bank for CampTix scored89%from 54 tests.

About plugin

  • Plugin page: gateway-mellat-ba...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 24, 2015
  • Latest release: Aug 24, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: hghanei (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /630 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by Gateway Mellat Bank for CampTix
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.26 ▼0.76
Dashboard /wp-admin3.31 ▲0.0143.61 ▼4.52
Posts /wp-admin/edit.php3.36 ▲0.0047.17 ▼4.68
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.28 ▼25.45
Media Library /wp-admin/upload.php3.23 ▲0.0037.21 ▲4.26

Server storage [IO: ▲0.29MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for Gateway Mellat Bank for CampTix
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.154.51 ▲2.9144.50 ▼0.78
Dashboard /wp-admin2,209 ▲184.88 ▼1.01105.49 ▲3.4440.74 ▼1.74
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0240.68 ▲1.6134.88 ▼1.49
Add New Post /wp-admin/post-new.php1,533 ▲523.27 ▲4.89658.15 ▲41.1961.11 ▲15.23
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0192.96 ▼11.9344.89 ▼2.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Requires at least: Invalid version format
The official readme.txt might help

gateway-mellat-bank-for-camptix/camptix-mellat.php 92% from 13 tests

The main PHP file in "Gateway Mellat Bank for CampTix" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gateway-mellat-bank-for-camptix.php" instead of "camptix-mellat.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
No dangerous file extensions were detected5,606 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34672,4385,606

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity89.20
▷ Minimum class complexity1.00
▷ Maximum class complexity388.00
Average method complexity9.48
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods156
▷ Static methods00.00%
▷ Public methods156100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
There are no PNG files in this plugin