79% wp-wallet

Code Review | WP Wallet

WordPress plugin WP Wallet scored79%from 54 tests.

About plugin

  • Plugin page: wp-wallet
  • Plugin version: 0.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.9
  • WordPress version: 6.3.1
  • First release: Apr 11, 2022
  • Latest release: Apr 15, 2022
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: howarddc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,206 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.69ms] Passed 4 tests

Analyzing server-side resources used by WP Wallet
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.89 ▲1.49
Dashboard /wp-admin3.36 ▲0.0648.93 ▼1.97
Posts /wp-admin/edit.php3.47 ▲0.1250.69 ▲0.42
Add New Post /wp-admin/post-new.php5.96 ▲0.0791.85 ▼15.53
Media Library /wp-admin/upload.php3.28 ▲0.0537.60 ▼1.66

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

WP Wallet: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.58 ▼0.731.64 ▼0.1446.60 ▲2.77
Dashboard /wp-admin2,234 ▲435.91 ▲1.0399.88 ▼12.7277.55 ▲35.99
Posts /wp-admin/edit.php2,117 ▲282.02 ▲0.0236.55 ▲1.0229.81 ▼6.58
Add New Post /wp-admin/post-new.php1,543 ▲2922.82 ▲5.12740.53 ▲44.5758.11 ▼7.39
Media Library /wp-admin/upload.php1,407 ▲224.25 ▲0.10102.81 ▼1.6869.92 ▲24.60

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-wallet/public/partials/wp-wallet-public-display.php
    • > /wp-content/plugins/wp-wallet/admin/partials/wp-wallet-admin-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/wp-wallet/admin/partials/wp-wallet-admin-display.php on line 19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: management, wallet, licenses

wp-wallet/wp-wallet.php Passed 13 tests

The main PHP file in "WP Wallet" ver. 0.0.2 adds more information about the plugin and also serves as the entry point for this plugin
48 characters long description:
Easily connect your WordPress site to WP Wallet.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin256 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP13140600229
SVG20014
JavaScript33298
JSON1004
CSS2041

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity1.62
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.19
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected