88% nexty-payment

Code Review | Nextypay

WordPress plugin Nextypay scored88%from 54 tests.

About plugin

  • Plugin page: nexty-payment
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.9.5
  • WordPress version: 6.3.1
  • First release: Jul 6, 2018
  • Latest release: Jul 11, 2018
  • Number of updates: 12
  • Update frequency: every 0.4 days
  • Top authors: thangnguyen87 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /696 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: ▼5.99ms] Passed 4 tests

A check of server-side resources used by Nextypay
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.85 ▼1.61
Dashboard /wp-admin3.31 ▲0.0049.84 ▼2.67
Posts /wp-admin/edit.php3.36 ▲0.0049.35 ▼1.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.67 ▼18.39
Media Library /wp-admin/upload.php3.23 ▲0.0037.30 ▼0.02

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

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

Browser metrics Passed 4 tests

Nextypay: 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.35 ▼0.311.68 ▼0.4745.60 ▲6.51
Dashboard /wp-admin2,195 ▲155.63 ▼0.0495.85 ▲4.6541.98 ▼2.39
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0136.01 ▲1.3233.52 ▼4.06
Add New Post /wp-admin/post-new.php1,538 ▲923.11 ▼0.03655.31 ▼51.2256.17 ▲7.21
Media Library /wp-admin/upload.php1,397 ▼34.25 ▼0.0296.92 ▼11.1744.97 ▲3.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
  • Donate link: Invalid URI found ("nexty.io")
  • Screenshots: These screenshots do not have images: #1 (Nexty Plugin Settings), #2 (Nexty Plugin Payment Page), #3 (Nexty Plugin Orders Menu)
The official readme.txt might help

nexty-payment/nextypay.php 77% from 13 tests

The main PHP file in "Nextypay" ver. 1.1 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:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nexty-payment.php" instead of "nextypay.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,259 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP73042131,056
JavaScript21919128
Markdown126072
CSS1003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity8.50
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods69
▷ Static methods45.80%
▷ Public methods5072.46%
▷ Protected methods00.00%
▷ Private methods1927.54%
Functions31
▷ Named functions2993.55%
▷ Anonymous functions26.45%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin