89% paystack-wpjobster-gateway

Code Review | WPJobster Paystack Gateway

WordPress plugin WPJobster Paystack Gateway scored 89% from 54 tests.

About plugin

  • Plugin page: paystack-wpjobste...
  • Plugin version: 2.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Mar 20, 2018
  • Latest release: Jul 29, 2019
  • Number of updates: 3
  • Update frequency: every 165.7 days
  • Top authors: paystack (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,279 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.85ms] Passed 4 tests

Analyzing server-side resources used by WPJobster Paystack Gateway
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1040.41 ▲2.28
Dashboard /wp-admin3.40 ▲0.0946.65 ▼1.24
Posts /wp-admin/edit.php3.51 ▲0.1546.03 ▼1.83
Add New Post /wp-admin/post-new.php5.98 ▲0.0993.71 ▼7.01
Media Library /wp-admin/upload.php3.32 ▲0.0934.86 ▼1.33

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WPJobster Paystack Gateway
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.15 ▼1.221.72 ▼0.1244.57 ▼1.12
Dashboard /wp-admin2,200 ▲125.99 ▲1.08103.79 ▼3.2840.13 ▼2.34
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0534.38 ▼5.2133.11 ▲2.55
Add New Post /wp-admin/post-new.php1,542 ▲2318.26 ▼4.70597.87 ▼62.8171.60 ▼1.31
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0597.97 ▼12.1640.96 ▼3.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (The slick Paystack settings panel.) image missing
The official readme.txt is a good inspiration

paystack-wpjobster-gateway/wpjobster-paystack.php 92% from 13 tests

Analyzing the main PHP file in "WPJobster Paystack Gateway" version 2.0
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("paystack-wpjobster-gateway.php" instead of "wpjobster-paystack.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin380 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP298168380

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity10.50
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods314.29%
▷ Public methods2095.24%
▷ Protected methods14.76%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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.35MB with 0.25MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png362.25KB104.19KB▼ 71.24%