84% jigoshop-credimax

Code Review | Jigoshop Credimax

WordPress plugin Jigoshop Credimax scored84%from 54 tests.

About plugin

  • Plugin page: jigoshop-credimax
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.1.1
  • WordPress version: 6.3.1
  • First release: Jun 13, 2014
  • Latest release: Feb 22, 2015
  • Number of updates: 6
  • Update frequency: every 42.5 days
  • Top authors: Ali_Ashoor (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,237 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.57ms] Passed 4 tests

Analyzing server-side resources used by Jigoshop Credimax
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0844.85 ▲1.19
Dashboard /wp-admin3.43 ▲0.0853.99 ▼0.82
Posts /wp-admin/edit.php3.55 ▲0.1450.78 ▼5.09
Add New Post /wp-admin/post-new.php6.01 ▲0.0892.37 ▼5.55
Media Library /wp-admin/upload.php3.36 ▲0.0846.04 ▲4.73

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

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

Browser metrics Passed 4 tests

Jigoshop Credimax: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.00 ▼0.351.79 ▼0.0739.88 ▼0.62
Dashboard /wp-admin2,189 ▲125.59 ▲0.0287.08 ▼7.1841.88 ▼8.76
Posts /wp-admin/edit.php2,097 ▼01.99 ▲0.0436.08 ▼1.7738.89 ▲2.89
Add New Post /wp-admin/post-new.php1,526 ▼023.10 ▼0.08749.75 ▲45.4666.99 ▲5.11
Media Library /wp-admin/upload.php1,403 ▲64.20 ▼0.06109.93 ▼10.6347.41 ▲0.54

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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/jigoshop-credimax/jigoshop-credimax.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: gateway, checkout, shop, ecommerce, payment...

jigoshop-credimax/jigoshop-credimax.php Passed 13 tests

The main PHP script in "Jigoshop Credimax" version 1.0.0 is automatically included on every request by WordPress
85 characters long description:
This plugin extends the Jigoshop payment gateways to add in Credimax Payment Gateway.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin358 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP198138358

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity79.00
▷ Minimum class complexity79.00
▷ Maximum class complexity79.00
Average method complexity7.50
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods1083.33%
▷ Protected methods216.67%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png5.42KB2.20KB▼ 59.51%