Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼3.82ms] Passed 4 tests
An overview of server-side resources used by Opensea NFT Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.12 ▼6.77 |
Dashboard /wp-admin | 3.42 ▲0.12 | 47.48 ▼2.36 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.64 ▼5.17 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 101.64 ▼0.15 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.99 ▼0.96 |
Setting /wp-admin/admin.php?page=gallery-setting | 3.32 | 56.77 |
Gallery OpenseaNFT /wp-admin/admin.php?page=gallery-openseanft | 3.34 | 32.43 |
Server storage [IO: ▲5.80MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Opensea NFT Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲126 | 13.34 ▼1.03 | 1.77 ▼0.07 | 31.09 ▼13.74 |
Dashboard /wp-admin | 2,253 ▲65 | 5.93 ▲1.06 | 112.07 ▲5.03 | 44.55 ▼0.38 |
Posts /wp-admin/edit.php | 2,143 ▲54 | 2.47 ▲0.45 | 40.05 ▼0.50 | 39.42 ▲4.04 |
Add New Post /wp-admin/post-new.php | 1,565 ▲35 | 23.49 ▲5.22 | 682.03 ▲29.76 | 57.43 ▼0.46 |
Media Library /wp-admin/upload.php | 1,438 ▲50 | 4.31 ▲0.13 | 97.85 ▼7.93 | 46.42 ▼1.11 |
Setting /wp-admin/admin.php?page=gallery-setting | 1,108 | 1.86 | 33.57 | 46.24 |
Gallery OpenseaNFT /wp-admin/admin.php?page=gallery-openseanft | 1,185 | 1.93 | 28.53 | 41.87 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gallery-openseanft/gallery-openseanft.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gallery-openseanft/user_verifykey.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/gallery-openseanft/generatekey.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
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 to be fixed:
- Donate link: Please fix this invalid URI: "none"
gallery-openseanft/gallery-openseanft.php 92% from 13 tests
The principal PHP file in "Opensea NFT Gallery" v. 1.1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin15,343 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 13 | 4,541 | 87 | 10,613 |
SVG | 3 | 0 | 1 | 2,837 |
PHP | 4 | 195 | 56 | 920 |
JSON | 1 | 0 | 0 | 690 |
JavaScript | 11 | 85 | 142 | 283 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/india.png | 1.51KB | 0.73KB | ▼ 51.62% |
assets/image/us.png | 2.23KB | 1.14KB | ▼ 48.91% |
assets/image/user.png | 3.97KB | 2.46KB | ▼ 38.12% |