Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.77ms] Passed 4 tests
An overview of server-side resources used by Web3 Smart Contracts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.34 ▼2.56 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.67 ▲3.81 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 49.33 ▼3.86 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.63 ▼11.24 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.73 ▼1.40 |
Server storage [IO: ▲1.54MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Web3 Smart Contracts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 14.73 ▲0.09 | 1.84 ▲0.15 | 44.31 ▲0.88 |
Dashboard /wp-admin | 2,206 ▲18 | 5.83 ▼0.02 | 104.67 ▲1.61 | 91.22 ▲48.36 |
Posts /wp-admin/edit.php | 2,104 ▲12 | 2.01 ▲0.02 | 33.79 ▼7.67 | 32.39 ▼3.66 |
Add New Post /wp-admin/post-new.php | 1,527 ▼6 | 23.11 ▼0.08 | 765.06 ▲103.55 | 54.48 ▲0.49 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.14 ▼0.06 | 97.86 ▼6.30 | 71.35 ▲25.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 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 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
No output text or server-side errors detected 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
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: web3, nft, ethereum, smart contracts, blockchain
web3-smart-contracts/web3-smart-contracts.php Passed 13 tests
Analyzing the main PHP file in "Web3 Smart Contracts" version 1.1.0
101 characters long description:
miniOrange Smart Contracts allow you to create and deploy Smart Contracts on your blockchain network.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected15,930 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 3,484 | 6,391 | 15,305 |
PHP | 14 | 117 | 338 | 623 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 20 | 64.52% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/miniorange.png | 0.44KB | 0.35KB | ▼ 18.61% |