78% integration-for-nummuspay

Code Review | Integrartion for Nummuspay

WordPress plugin Integrartion for Nummuspay scored78%from 54 tests.

About plugin

  • Plugin page: integration-for-n...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9
  • WordPress version: 6.3.1
  • First release: May 29, 2021
  • Latest release: Feb 8, 2022
  • Number of updates: 8
  • Update frequency: every 32.0 days
  • Top authors: sgsoftwaresolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,301 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.16ms] Passed 4 tests

Server-side resources used by Integrartion for Nummuspay
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.71 ▼8.88
Dashboard /wp-admin3.32 ▲0.0250.75 ▼0.04
Posts /wp-admin/edit.php3.37 ▲0.0151.58 ▲3.69
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.16 ▼14.48
Media Library /wp-admin/upload.php3.24 ▲0.0135.99 ▼1.23
Integration for Nummuspay /wp-admin/options-general.php?page=integration-nummuspay3.2133.49

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
_CHECKOUT_PAGE_ID_FROM_NUMMUSPAY
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Integrartion for Nummuspay
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲17613.97 ▼0.395.48 ▲3.7640.76 ▼5.66
Dashboard /wp-admin2,220 ▲325.90 ▲1.01101.29 ▼15.4439.20 ▼8.83
Posts /wp-admin/edit.php2,103 ▲142.00 ▼0.0340.55 ▼1.1534.83 ▼2.66
Add New Post /wp-admin/post-new.php1,527 ▲823.31 ▲0.06674.74 ▼13.7556.24 ▼10.79
Media Library /wp-admin/upload.php1,402 ▲144.21 ▼0.06102.77 ▼14.8144.28 ▼6.30
Integration for Nummuspay /wp-admin/options-general.php?page=integration-nummuspay7822.0224.5926.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • _CHECKOUT_PAGE_ID_FROM_NUMMUSPAY
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
Please take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/integration-for-nummuspay/admin/partials/integration-nummuspay-admin-display.php
    • > /wp-content/plugins/integration-for-nummuspay/public/partials/integration-nummuspay-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/integration-for-nummuspay/includes/class-integration-nummuspay-methods.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
Attributes that need to be fixed: You can look at the official readme.txt

integration-for-nummuspay/integration-nummuspay.php 85% from 13 tests

This is the main PHP file of "Integrartion for Nummuspay" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("integration-for-nummuspay.php" instead of "integration-nummuspay.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected262 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP13127542255
JavaScript34547
CSS2080

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin