Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲1.32MB] [CPU: ▲11.39ms] Passed 4 tests
Server-side resources used by NFT Galleries
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.79 ▲1.33 | 52.29 ▲9.87 |
Dashboard /wp-admin | 4.63 ▲1.33 | 67.70 ▲21.64 |
Posts /wp-admin/edit.php | 4.68 ▲1.33 | 63.55 ▲13.70 |
Add New Post /wp-admin/post-new.php | 7.40 ▲1.52 | 110.41 ▲7.86 |
Media Library /wp-admin/upload.php | 4.49 ▲1.27 | 53.22 ▲14.14 |
Server storage [IO: ▲2.42MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 928 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_snft_galleries |
wp_snft_tokens |
wp_snft_wallets |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
snft_rest_api_auth_token |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for NFT Galleries
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲108 | 13.16 ▼1.23 | 1.54 ▼0.51 | 41.53 ▼3.79 |
Dashboard /wp-admin | 2,227 ▲36 | 5.82 ▼0.11 | 119.81 ▲22.48 | 46.66 ▲2.36 |
Posts /wp-admin/edit.php | 2,113 ▲21 | 2.01 ▼0.05 | 41.71 ▲0.25 | 36.34 ▼2.32 |
Add New Post /wp-admin/post-new.php | 1,567 ▲23 | 23.86 ▲5.61 | 679.29 ▲20.22 | 39.12 ▼18.37 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.22 ▲0.03 | 95.49 ▼19.78 | 47.10 ▼2.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_snft_galleries
- wp_snft_tokens
- wp_snft_wallets
- Zombie WordPress options detected upon uninstall: 7 options
- snft_rest_api_auth_token
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 188× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'RebelCode\\Spotlight\ft\\Module' not found in wp-content/plugins/nft-galleries/modules/RestApiModule.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/nft-galleries/vendor/rebelcode/psr7/src/FnStream.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Dhii\\Collection\\CountableListInterface' not found in wp-content/plugins/nft-galleries/vendor/dhii/collections-interface/src/CountableSetInterface.php:14
- > PHP Fatal error
Uncaught Error: Class 'RebelCode\\Spotlight\ft\\Module' not found in wp-content/plugins/nft-galleries/modules/WalletsModule.php:18
- > PHP Fatal error
Uncaught Error: Class 'Dhii\\Services\\Service' not found in wp-content/plugins/nft-galleries/src/core/Di/ArrayExtension.php:42
- > PHP Fatal error
Uncaught Error: Interface 'Interop\\Container\\ServiceProviderInterface' not found in wp-content/plugins/nft-galleries/vendor/dhii/containers/src/CompositeCachingServiceProvider.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\SimpleCache\\InvalidArgumentException' not found in wp-content/plugins/nft-galleries/vendor/wp-oop/transient-cache/src/Exception/InvalidArgumentException.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Dhii\\Collection\\ContainerInterface' not found in wp-content/plugins/nft-galleries/vendor/dhii/containers/src/HierarchyContainer.php:37
- > PHP Fatal error
Uncaught Error: Interface 'Dhii\\Transformer\\TransformerInterface' not found in wp-content/plugins/nft-galleries/src/core/RestApi/Transformers/FeedTransformer.php:15
- > PHP Fatal error
Uncaught Error: Class 'RebelCode\\Spotlight\ft\\SaaS\\SaasResourceFetcher' not found in wp-content/plugins/nft-galleries/src/core/Feeds/Templates/FeedTemplatesProvider.php:10
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: crypto, gallery, nft, opensea, ethereum...
nft-galleries/plugin.php 85% from 13 tests
The main PHP file in "NFT Galleries" ver. 0.1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.8" instead of "5.7")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nft-galleries.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin31,878 lines of code in 787 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 323 | 3,504 | 8,349 | 14,088 |
TypeScript | 390 | 2,227 | 1,050 | 13,911 |
JSON | 23 | 0 | 0 | 2,039 |
Sass | 16 | 233 | 16 | 1,039 |
XML | 3 | 8 | 0 | 434 |
CSS | 11 | 18 | 4 | 173 |
YAML | 6 | 39 | 0 | 149 |
JavaScript | 14 | 3 | 4 | 26 |
Markdown | 1 | 2 | 0 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 4.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 70 | |
Interfaces | 93 | |
Traits | 6 | |
Classes | 215 | |
▷ Abstract classes | 6 | 2.79% |
▷ Concrete classes | 209 | 97.21% |
▷ Final classes | 21 | 10.05% |
Methods | 1,151 | |
▷ Static methods | 178 | 15.46% |
▷ Public methods | 1,002 | 87.05% |
▷ Protected methods | 107 | 9.30% |
▷ Private methods | 42 | 3.65% |
Functions | 138 | |
▷ Named functions | 5 | 3.62% |
▷ Anonymous functions | 133 | 96.38% |
Constants | 140 | |
▷ Global constants | 10 | 7.14% |
▷ Class constants | 130 | 92.86% |
▷ Public constants | 111 | 85.38% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ui/images/icon-256x256.png | 35.18KB | 10.49KB | ▼ 70.18% |
ui/images/icon-128x128.png | 15.35KB | 5.36KB | ▼ 65.06% |