10% noadpl-paypal-widget

Code Review | NoAd.pl Paypal Widget Plugin

WordPress plugin NoAd.pl Paypal Widget Plugin scored 10% from 54 tests.

About plugin

  • Plugin page: noadpl-paypal-widget
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.5.2
  • WordPress version: 6.3.1
  • First release: Apr 24, 2016
  • Latest release: May 8, 2016
  • Number of updates: 13
  • Update frequency: every 1.2 days
  • Top authors: noadpl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 567 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/noadpl-paypal-widget/noad-paypal-widget.php+143
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_my_plugin has a deprecated constructor

Server metrics [RAM: ▼1.89MB] [CPU: ▼61.87ms] Passed 4 tests

A check of server-side resources used by NoAd.pl Paypal Widget Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.375.02 ▼40.36
Dashboard /wp-admin2.11 ▼1.196.25 ▼51.92
Posts /wp-admin/edit.php2.12 ▼1.246.83 ▼60.53
Add New Post /wp-admin/post-new.php2.11 ▼3.775.97 ▼94.68
Media Library /wp-admin/upload.php2.11 ▼1.116.06 ▼35.85

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_wp_my_plugin
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for NoAd.pl Paypal Widget Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼1113.62 ▼1.181.78 ▼0.2644.37 ▼10.55
Dashboard /wp-admin2,206 ▼35.86 ▼0.00107.66 ▼2.2343.68 ▲0.15
Posts /wp-admin/edit.php2,089 ▼31.99 ▲0.0040.60 ▲1.4535.18 ▲1.35
Add New Post /wp-admin/post-new.php1,534 ▼823.08 ▲4.52698.74 ▲47.0151.35 ▲1.47
Media Library /wp-admin/upload.php1,388 ▲34.20 ▼0.0397.30 ▼4.8943.26 ▼0.30

Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% 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
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/noadpl-paypal-widget/noad-paypal-widget.php+143
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_my_plugin has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_wp_my_plugin
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/noadpl-paypal-widget/noad-paypal-widget.php:143

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: integration, widget, balance, goal, customizable...

noadpl-paypal-widget/noad-paypal-widget.php 85% from 13 tests

The primary PHP file in "NoAd.pl Paypal Widget Plugin" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("noadpl-paypal-widget.php" instead of "noad-paypal-widget.php")
  • Description: The description should be shorter than 140 characters (currently 178 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin158 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13698158

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity4.50
▷ Minimum class complexity3.00
▷ Maximum class complexity6.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods666.67%
▷ Protected methods00.00%
▷ Private methods333.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin