88% pm-pay-links

Code Review | PM Pay Links

WordPress plugin PM Pay Links scored 88% from 54 tests.

About plugin

  • Plugin page: pm-pay-links
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Aug 20, 2021
  • Latest release: Aug 20, 2021
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: pluginsdotmonster (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 121 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.01MB] [CPU: ▼288.77ms] Passed 4 tests

This is a short check of server-side resources used by PM Pay Links
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0462.86 ▲10.27
Dashboard /wp-admin3.43 ▲0.0232.96 ▼0.89
Posts /wp-admin/edit.php3.66 ▲0.0137.07 ▼1.33
Add New Post /wp-admin/post-new.php6.92 ▼0.0897.31 ▼1,153.39
Media Library /wp-admin/upload.php3.31 ▲0.0124.06 ▲0.55
List /wp-admin/admin.php?page=pmpaylinks_listlink_sl3.2521.94
Introduction /wp-admin/admin.php?page=pmpaylinks_main_sl3.2722.03
Help /wp-admin/admin.php?page=pmpaylinks_help_sl3.2721.76
Create /wp-admin/admin.php?page=pmpaylinks_createlink_sl3.2721.94

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: 1 new table, no new options
New tables
wp_pmpaylinksdata

Browser metrics Passed 4 tests

PM Pay Links: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,840 ▲11815.87 ▲0.166.42 ▲0.843.15 ▲0.77
Dashboard /wp-admin2,939 ▲816.05 ▼0.10116.35 ▼14.38171.36 ▲18.29
Posts /wp-admin/edit.php2,733 ▲453.12 ▼0.1265.04 ▲2.32136.83 ▼4.65
Add New Post /wp-admin/post-new.php1,696 ▲3518.07 ▲1.82401.76 ▼12.11196.52 ▲44.16
Media Library /wp-admin/upload.php1,739 ▲365.51 ▲0.00122.02 ▼13.84201.61 ▲11.49
List /wp-admin/admin.php?page=pmpaylinks_listlink_sl1,1022.5253.33101.43
Introduction /wp-admin/admin.php?page=pmpaylinks_main_sl1,1412.5055.05105.34
Help /wp-admin/admin.php?page=pmpaylinks_help_sl1,2032.3755.68102.00
Create /wp-admin/admin.php?page=pmpaylinks_createlink_sl1,4312.3954.56114.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pmpaylinks_listlink_sl
    • > Notice in wp-content/plugins/pm-pay-links/pmpaylinks.php+503
    Undefined index: pmcm
    • > GET request to /wp-admin/admin.php?page=pmpaylinks_listlink_sl
    • > Notice in wp-content/plugins/pm-pay-links/pmpaylinks.php+326
    Undefined index: dnum

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pm-pay-links/pmpaylinks.php:30

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: A description for screenshot #1 is missing in pm-pay-links/assets to your readme.txt
The official readme.txt might help

pm-pay-links/pmpaylinks.php 85% from 13 tests

The main file in "PM Pay Links" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 213 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pm-pay-links.php" instead of "pmpaylinks.php")

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
No dangerous file extensions were detected585 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP110129585

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
5 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
logo.png20.16KB6.89KB▼ 65.84%
pmpaylinksprobanner.png68.89KB21.88KB▼ 68.23%
pmpaylinkstopbanner.png66.19KB20.30KB▼ 69.34%
slogo.PNG17.25KB7.12KB▼ 58.73%
pmpaylinksicon.png1.64KB0.53KB▼ 67.70%