89% cubewp-wallet

Code Review | CubeWP Wallet

WordPress plugin CubeWP Wallet scored89%from 54 tests.

About plugin

  • Plugin page: cubewp-wallet
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 11, 2023
  • Latest release: Jun 27, 2023
  • Number of updates: 10
  • Update frequency: every 2.1 days
  • Top authors: cubewp1211 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,515 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by CubeWP Wallet
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.83 ▲4.12
Dashboard /wp-admin3.31 ▲0.0142.24 ▼0.21
Posts /wp-admin/edit.php3.37 ▲0.0140.42 ▼7.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.59 ▼18.34
Media Library /wp-admin/upload.php3.24 ▲0.0134.91 ▼1.60

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

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

Browser metrics Passed 4 tests

CubeWP Wallet: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲1514.29 ▼0.061.82 ▲0.0538.80 ▲0.16
Dashboard /wp-admin2,201 ▲235.51 ▼0.2282.05 ▼34.2339.65 ▼2.86
Posts /wp-admin/edit.php2,116 ▲162.01 ▲0.0335.06 ▼6.0631.57 ▼8.27
Add New Post /wp-admin/post-new.php1,540 ▲1223.46 ▲0.11642.52 ▼33.1357.07 ▼1.69
Media Library /wp-admin/upload.php1,415 ▲214.23 ▲0.0497.44 ▼1.7642.59 ▼2.88

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

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

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Donate link: Please fix this invalid url: "NA"
The official readme.txt might help

cubewp-wallet/cubewp-wallet.php 92% from 13 tests

The main PHP script in "CubeWP Wallet" version 1.0.3 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 152 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin3,246 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP182795752,341
CSS211920639
JavaScript290266

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity20.54
▷ Minimum class complexity2.00
▷ Maximum class complexity87.00
Average method complexity3.42
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods105
▷ Static methods5047.62%
▷ Public methods8379.05%
▷ Protected methods00.00%
▷ Private methods2220.95%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin