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: ▼1.06MB] [CPU: ▼43.26ms] Passed 4 tests
Analyzing server-side resources used by Simple Wishlists for Weddings, Birthdays etc.
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 48.92 ▼2.66 |
Dashboard /wp-admin | 2.89 ▼0.42 | 19.15 ▼42.58 |
Posts /wp-admin/edit.php | 2.89 ▼0.47 | 21.46 ▼29.60 |
Add New Post /wp-admin/post-new.php | 2.89 ▼3.00 | 21.26 ▼82.53 |
Media Library /wp-admin/upload.php | 2.89 ▼0.34 | 20.99 ▼18.32 |
All Wishlists /wp-admin/edit.php?post_type=wpgr_wishlist | 2.89 | 20.74 |
Settings /wp-admin/edit.php?post_type=wpgr_wishlist&page=wpgr_settings | 2.89 | 18.52 |
Add New /wp-admin/post-new.php?post_type=wpgr_wishlist | 2.89 | 21.81 |
Server storage [IO: ▲7.41MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 970 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
wpgr_settings |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Wishlists for Weddings, Birthdays etc.
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,013 ▲213 | 14.01 ▼0.39 | 10.60 ▲8.55 | 83.19 ▲34.00 |
Dashboard /wp-admin | 2,279 ▲73 | 5.90 ▲1.06 | 101.65 ▼12.21 | 69.25 ▲26.02 |
Posts /wp-admin/edit.php | 2,174 ▲85 | 2.11 ▲0.07 | 42.65 ▲2.56 | 38.65 ▲4.76 |
Add New Post /wp-admin/post-new.php | 1,631 ▲89 | 24.49 ▲6.21 | 824.30 ▲212.18 | 35.48 ▼19.89 |
Media Library /wp-admin/upload.php | 1,470 ▲88 | 4.24 ▲0.07 | 108.34 ▲5.88 | 77.69 ▲35.52 |
All Wishlists /wp-admin/edit.php?post_type=wpgr_wishlist | 1,157 | 2.03 | 36.21 | 32.26 |
Settings /wp-admin/edit.php?post_type=wpgr_wishlist&page=wpgr_settings | 996 | 2.30 | 30.12 | 30.52 |
Add New /wp-admin/post-new.php?post_type=wpgr_wishlist | 2,185 | 4.78 | 87.71 | 98.98 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wpgiftregistry/admin/class-wp-gift-registry-admin.php+330
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 16 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpgr_wishlist
- > Notice in wp-content/plugins/wpgiftregistry/admin/class-wp-gift-registry-admin.php+877
Trying to access array offset on value of type bool
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpgr_wishlist
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wpgiftregistry/admin/partials/wp-gift-registry-admin-display.php
- > /wp-content/plugins/wpgiftregistry/public/partials/wp-gift-registry-public-display.php
- 189× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/wpgiftregistry/includes/libraries/cmb2/includes/types/CMB2_Type_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpgiftregistry/includes/libraries/wp-plugin-usage-tracker/vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpgiftregistry/includes/libraries/wp-plugin-usage-tracker/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpgiftregistry/includes/libraries/wp-plugin-usage-tracker/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpgiftregistry/includes/libraries/wp-plugin-usage-tracker/vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wpgiftregistry/includes/libraries/wp-plugin-usage-tracker/vendor/composer/installers/tests/Composer/Installers/Test/VgmcpInstallerTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpgiftregistry/includes/libraries/wp-plugin-usage-tracker/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wpgiftregistry/includes/libraries/cmb2/includes/includes/types/CMB2_Type_Multi_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/wpgiftregistry/includes/libraries/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpgiftregistry/includes/libraries/wp-plugin-usage-tracker/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
9 plugin tags: wedding, gift registry, wishlist, plugin, product list...
wpgiftregistry/wpgiftregistry.php Passed 13 tests
The entry point to "Simple Wishlists for Weddings, Birthdays etc." version 1.4.13 is a PHP file that has certain tags in its header comment area
92 characters long description:
A simple way to create a linked list of wishes for your wedding, birthday or other occasion.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin77,272 lines of code in 428 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 122 | 14,473 | 18,743 | 32,747 |
JSON | 9 | 0 | 0 | 13,979 |
PHP | 196 | 3,529 | 8,664 | 13,301 |
CSS | 19 | 867 | 1,709 | 7,492 |
Sass | 34 | 1,425 | 57 | 5,105 |
JavaScript | 27 | 890 | 1,410 | 3,201 |
Markdown | 9 | 419 | 0 | 1,229 |
SVG | 7 | 0 | 7 | 127 |
YAML | 3 | 16 | 51 | 60 |
XML | 2 | 6 | 2 | 31 |
PHP code Passed 2 tests
An overview 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.44 |
Average class complexity | 11.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 259 | |
▷ Abstract classes | 20 | 7.72% |
▷ Concrete classes | 239 | 92.28% |
▷ Final classes | 0 | 0.00% |
Methods | 1,356 | |
▷ Static methods | 196 | 14.45% |
▷ Public methods | 1,112 | 82.01% |
▷ Protected methods | 218 | 16.08% |
▷ Private methods | 26 | 1.92% |
Functions | 98 | |
▷ Named functions | 76 | 77.55% |
▷ Anonymous functions | 22 | 22.45% |
Constants | 26 | |
▷ Global constants | 7 | 26.92% |
▷ Class constants | 19 | 73.08% |
▷ Public constants | 19 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
29 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/libraries/cmb2/includes/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
includes/libraries/cmb2/includes/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/libraries/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
includes/libraries/cmb2/includes/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/libraries/cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |