Benchmarks
Plugin footprint 65% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.61MB] [CPU: ▲22.10ms] 75% from 4 tests
A check of server-side resources used by Opensea
The following require your attention
- CPU: You should keep total CPU usage under 500.00ms (currently 1,665.28ms on /wp-admin/options-general.php?page=opensea)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.47 ▲5.01 | 57.69 ▲16.28 |
Dashboard /wp-admin | 8.50 ▲5.20 | 75.39 ▲24.49 |
Posts /wp-admin/edit.php | 8.50 ▲5.15 | 66.36 ▲19.34 |
Add New Post /wp-admin/post-new.php | 8.97 ▲3.09 | 124.22 ▲33.72 |
Media Library /wp-admin/upload.php | 8.50 ▲5.28 | 61.41 ▲28.28 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.50 | 53.55 |
Opensea /wp-admin/options-general.php?page=opensea | 8.51 | 1,665.28 |
Server storage [IO: ▲2.98MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 172 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
fs_gdpr |
can_compress_scripts |
fs_debug_mode |
fs_accounts |
widget_theysaidso_widget |
widget_recent-comments |
fs_active_plugins |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Opensea
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲115 | 13.22 ▼1.07 | 1.98 ▼0.06 | 35.12 ▼14.93 |
Dashboard /wp-admin | 2,231 ▲49 | 5.83 ▲0.95 | 104.66 ▼12.63 | 46.26 ▲3.02 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 1.99 ▼0.02 | 37.09 ▲1.38 | 36.77 ▲5.27 |
Add New Post /wp-admin/post-new.php | 1,525 ▼9 | 23.27 ▲0.14 | 647.82 ▼17.21 | 55.56 ▲5.19 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.21 ▲0.06 | 96.99 ▼17.89 | 46.60 ▲3.33 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,060 | 1.72 | 23.74 | 26.02 |
Opensea /wp-admin/options-general.php?page=opensea | 1,033 | 5.70 | 114.99 | 44.29 |
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
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/opensea/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 10 options
- can_compress_scripts
- db_upgraded
- fs_active_plugins
- widget_theysaidso_widget
- fs_gdpr
- fs_accounts
- fs_debug_mode
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/opensea/class-admin.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/opensea/opensea.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/opensea/class-frontend.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
10 plugin tags: web3, digitalcollectibles, nft, digitalcollectible, blockchain...
opensea/opensea.php 92% from 13 tests
"Opensea" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 262 characters long)
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin31,100 lines of code in 127 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 110 | 7,272 | 16,101 | 30,550 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 3 | 34 | 59 | 194 |
CSS | 12 | 12 | 0 | 115 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 90.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 2 | 4.44% |
▷ Concrete classes | 43 | 95.56% |
▷ Final classes | 0 | 0.00% |
Methods | 1,132 | |
▷ Static methods | 173 | 15.28% |
▷ Public methods | 792 | 69.96% |
▷ Protected methods | 15 | 1.33% |
▷ Private methods | 325 | 28.71% |
Functions | 103 | |
▷ Named functions | 103 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 129 | |
▷ Global constants | 104 | 80.62% |
▷ Class constants | 25 | 19.38% |
▷ Public constants | 25 | 100.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
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
images/alexm-wallet.png | 13.36KB | 2.61KB | ▼ 80.45% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |