Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.59MB] [CPU: ▼16.59ms] Passed 4 tests
An overview of server-side resources used by WP-Seedbank
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 44.43 ▲2.59 |
Dashboard /wp-admin | 3.41 ▲0.11 | 47.79 ▼4.45 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 52.26 ▲3.93 |
Add New Post /wp-admin/post-new.php | 3.20 ▼2.69 | 36.35 ▼68.43 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 44.62 ▲9.98 |
Seed Exchanges /wp-admin/edit.php?post_type=seedbank | 3.45 | 41.07 |
Batch Exchange /wp-admin/edit.php?post_type=seedbank&page=seedbank_batch_exchange | 3.28 | 32.66 |
Scientific Names /wp-admin/edit-tags.php?taxonomy=seedbank_scientific_name&post_type=seedbank | 3.58 | 52.59 |
Add Seed Exchange /wp-admin/post-new.php?post_type=seedbank | 3.21 | 37.59 |
Exchange Types /wp-admin/edit-tags.php?taxonomy=seedbank_exchange_type&post_type=seedbank | 3.34 | 41.66 |
Common Names /wp-admin/edit-tags.php?taxonomy=seedbank_common_name&post_type=seedbank | 3.36 | 49.00 |
Inventory Units /wp-admin/edit-tags.php?taxonomy=seedbank_unit&post_type=seedbank | 3.34 | 38.85 |
Server storage [IO: ▲0.59MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
seedbank_scientific_name_children |
Browser metrics Passed 4 tests
Checking browser requirements for WP-Seedbank
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲81 | 14.03 ▼0.32 | 1.71 ▼0.07 | 40.73 ▲1.31 |
Dashboard /wp-admin | 2,245 ▲65 | 5.56 ▼0.07 | 83.76 ▼11.94 | 84.84 ▲46.61 |
Posts /wp-admin/edit.php | 2,150 ▲50 | 2.03 ▲0.01 | 38.11 ▼0.20 | 34.08 ▼2.77 |
Add New Post /wp-admin/post-new.php | 1,592 ▲66 | 23.06 ▼0.44 | 653.43 ▲17.54 | 54.92 ▲3.10 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.11 ▼0.08 | 98.33 ▼12.56 | 66.38 ▲17.18 |
Seed Exchanges /wp-admin/edit.php?post_type=seedbank | 1,354 | 2.08 | 47.79 | 38.35 |
Batch Exchange /wp-admin/edit.php?post_type=seedbank&page=seedbank_batch_exchange | 1,138 | 1.93 | 33.29 | 28.69 |
Scientific Names /wp-admin/edit-tags.php?taxonomy=seedbank_scientific_name&post_type=seedbank | 3,081 | 1.88 | 30.07 | 46.65 |
Add Seed Exchange /wp-admin/post-new.php?post_type=seedbank | 4,824 | 7.99 | 190.06 | 134.56 |
Exchange Types /wp-admin/edit-tags.php?taxonomy=seedbank_exchange_type&post_type=seedbank | 1,553 | 1.87 | 28.45 | 35.70 |
Common Names /wp-admin/edit-tags.php?taxonomy=seedbank_common_name&post_type=seedbank | 2,326 | 1.88 | 29.45 | 37.44 |
Inventory Units /wp-admin/edit-tags.php?taxonomy=seedbank_unit&post_type=seedbank | 1,419 | 1.86 | 28.15 | 34.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- seedbank_scientific_name_children
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/edit.php?post_type=seedbank&page=seedbank_batch_exchange
- > Notice in wp-content/plugins/wp-seedbank/wp-seedbank.php+1241
Undefined index: seedbank-batch-exchange-step
- > GET request to /wp-admin/post-new.php?post_type=seedbank
- > Notice in wp-content/plugins/wp-seedbank/wp-seedbank.php+387
Undefined index: post_type
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-seedbank/languages/index.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-seedbank/wp-seedbank.php:33
- > PHP Fatal error
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 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: These screenshots have no corresponding images in /assets: #1 (The new Seed Exchange request/offer screen. In addition to your post title and content, you use the "Seed Exchange Details" box to fill in the details of your seed exchange posting in a madlibs-style form. You can also use the "Scientific Names" box to categorize your seed according to its biological classification, if you know it.), #2 (The Batch Exchange page lets you upload a file to create many seed exchanges at once.), #3 (The "Seed Exchanges" screen gives you a heads-up display of all the seed exchange postings. You can click on the links in the column to filter your view; in this screenshot, clicking on "Swap" in the "Exchange Types" link will filter the list so it only displays seed swaps. You can also sort the list according to the Quantity, Seed Expiry Date, or Exchange Expiry Date by clicking on those column headers.)
wp-seedbank/wp-seedbank.php Passed 13 tests
The primary PHP file in "WP-Seedbank" version 0.4.4 is used by WordPress to initiate all plugin functionality
106 characters long description:
Add a seed exchange post type to turn your WordPress website into a community seedbank or seed library! :D
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin3,833 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 3 | 1,083 | 1,125 | 2,451 |
PHP | 3 | 95 | 124 | 1,279 |
JavaScript | 1 | 7 | 4 | 103 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 101)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 87.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 171.00 |
Average method complexity | 5.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 101.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 72.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 27.78% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.29MB with 0.18MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 110.68KB | 42.20KB | ▼ 61.87% |
images/seedexchange_icon.png | 1.10KB | 0.46KB | ▼ 57.97% |
screenshot-2.png | 64.68KB | 25.48KB | ▼ 60.60% |
screenshot-3.png | 119.47KB | 43.91KB | ▼ 63.25% |