90% tcp-topup-bonus-for-terawallet

Code Review | TeraWallet Topup Bonus by TheCartPress

WordPress plugin TeraWallet Topup Bonus by TheCartPress scored90%from 54 tests.

About plugin

  • Plugin page: tcp-topup-bonus-f...
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0.1
  • WordPress version: 6.3.1
  • First release: Jul 18, 2022
  • Latest release: Oct 11, 2022
  • Number of updates: 4
  • Update frequency: every 22.5 days
  • Top authors: tcpteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /929 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.30MB] [CPU: ▲3.56ms] Passed 4 tests

This is a short check of server-side resources used by TeraWallet Topup Bonus by TheCartPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3043.98 ▲6.73
Dashboard /wp-admin3.60 ▲0.3049.93 ▼0.62
Posts /wp-admin/edit.php3.71 ▲0.3649.84 ▲3.92
Add New Post /wp-admin/post-new.php6.18 ▲0.29103.67 ▲5.51
Media Library /wp-admin/upload.php3.52 ▲0.2942.37 ▲5.42

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

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

Browser metrics Passed 4 tests

A check of browser resources used by TeraWallet Topup Bonus by TheCartPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲12213.37 ▼0.991.68 ▼0.1137.10 ▼8.34
Dashboard /wp-admin2,263 ▲755.87 ▼0.03100.68 ▼7.3241.91 ▼0.93
Posts /wp-admin/edit.php2,149 ▲602.01 ▲0.0437.24 ▼7.5736.41 ▼2.55
Add New Post /wp-admin/post-new.php1,563 ▲2118.58 ▲0.27595.17 ▼85.6050.31 ▼3.85
Media Library /wp-admin/upload.php1,448 ▲604.23 ▲0.0398.10 ▼17.9041.56 ▼4.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: credit, bonus, terawallet, thecartpress, tcp...

tcp-topup-bonus-for-terawallet/tcp-wallet-topup-bonus.php 92% from 13 tests

The principal PHP file in "TeraWallet Topup Bonus by TheCartPress" v. 1.3.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("tcp-topup-bonus-for-terawallet.php" instead of "tcp-wallet-topup-bonus.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,364 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21172861,354
JavaScript10010

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity24.67
▷ Minimum class complexity7.00
▷ Maximum class complexity48.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods14.17%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions38
▷ Named functions2463.16%
▷ Anonymous functions1436.84%
Constants6
▷ Global constants116.67%
▷ Class constants583.33%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin