Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.20MB] [CPU: ▼0.56ms] Passed 4 tests
An overview of server-side resources used by Kredeum NFTs, the easiest way to sell your NFTs directly on your WordPress site
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 37.26 ▲1.19 |
Dashboard /wp-admin | 3.55 ▲0.25 | 50.95 ▲1.06 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 52.21 ▲5.46 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 85.30 ▼2.03 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 36.35 ▼2.46 |
My NFTs /wp-admin/admin.php?page=nfts | 3.44 | 33.98 |
NFTs settings /wp-admin/admin.php?page=storage_settings | 3.45 | 36.83 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Kredeum NFTs, the easiest way to sell your NFTs directly on your WordPress site: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲78 | 14.78 ▲0.44 | 1.88 ▲0.26 | 45.44 ▲2.12 |
Dashboard /wp-admin | 2,220 ▲39 | 5.63 ▼0.08 | 83.17 ▼18.33 | 38.26 ▼1.31 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.00 ▲0.02 | 35.53 ▼2.50 | 34.97 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.27 ▼0.30 | 636.84 ▼53.30 | 54.83 ▲4.88 |
Media Library /wp-admin/upload.php | 1,428 ▲25 | 12.99 ▲8.81 | 178.65 ▲72.12 | 43.19 ▼1.41 |
My NFTs /wp-admin/admin.php?page=nfts | 781 | 5.68 | 118.29 | 55.26 |
NFTs settings /wp-admin/admin.php?page=storage_settings | 798 | 5.59 | 59.14 | 29.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function KredeumNFTs\\Storage\\add_filter() in wp-content/plugins/kredeum-nfts/public/post/bottom.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/kredeum-nfts/vendor/tcdent/php-restclient/test.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function KredeumNFTs\\Ajax\\add_action() in wp-content/plugins/kredeum-nfts/admin/ajax/ajax.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function KredeumNFTs\\Storage\\add_action() in wp-content/plugins/kredeum-nfts/admin/media/post.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function KredeumNFTs\\Storage\\add_action() in wp-content/plugins/kredeum-nfts/admin/media/upload.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function KredeumNFTs\\esc_html() in wp-content/plugins/kredeum-nfts/kredeum-nfts.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function KredeumNFTs\\Storage\\add_filter() in wp-content/plugins/kredeum-nfts/admin/media-list/column.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function KredeumNFTs\\add_action() in wp-content/plugins/kredeum-nfts/public/front/automarket.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function KredeumNFTs\\Storage\\add_filter() in wp-content/plugins/kredeum-nfts/admin/media-list/actions.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function KredeumNFTs\\Menu\\add_action() in wp-content/plugins/kredeum-nfts/admin/nfts/index.php:10
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7 in kredeum-nfts/assets to your readme.txt
kredeum-nfts/kredeum-nfts.php Passed 13 tests
"Kredeum NFTs, the easiest way to sell your NFTs directly on your WordPress site" version 1.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
59 characters long description:
Plugin to archive your medias to IPFS and mint them as NFTs
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin7,355 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 9 | 0 | 0 | 5,042 |
PHP | 35 | 391 | 787 | 1,766 |
Markdown | 1 | 65 | 0 | 189 |
PO File | 2 | 58 | 71 | 163 |
JSON | 3 | 0 | 0 | 101 |
JavaScript | 3 | 8 | 42 | 54 |
CSS | 5 | 0 | 3 | 40 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 19.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 19 | 23.17% |
▷ Public methods | 79 | 96.34% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.66% |
Functions | 39 | |
▷ Named functions | 16 | 41.03% |
▷ Anonymous functions | 23 | 58.97% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
13 compressed PNG files occupy 0.08MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/images/icon-optimism.png | 1.40KB | 1.39KB | 0.28% |
lib/images/icon-matic.png | 0.85KB | 0.84KB | ▼ 0.69% |
lib/images/icon-bsc.png | 1.68KB | 1.67KB | ▼ 0.64% |
lib/images/icon-polygonzkevm.png | 2.67KB | 2.67KB | 0.00% |
lib/images/icon-gnosis.png | 42.56KB | 42.18KB | ▼ 0.89% |