Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.62ms] Passed 4 tests
Analyzing server-side resources used by NM Gift Registry and Wishlist Lite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 44.70 ▲2.80 |
Dashboard /wp-admin | 3.43 ▲0.13 | 45.75 ▼5.50 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 46.70 ▼1.44 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 94.82 ▲7.89 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.45 ▲1.66 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 105 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
nmgr_flush_rewrite_rules |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for NM Gift Registry and Wishlist Lite
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.23 ▲0.03 | 1.69 ▼0.12 | 36.50 ▼8.45 |
Dashboard /wp-admin | 2,192 ▲20 | 5.61 ▼0.16 | 94.03 ▼20.61 | 43.29 ▼4.30 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.03 ▲0.01 | 39.34 ▼5.80 | 35.64 ▼2.74 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.25 ▲0.13 | 648.06 ▼38.61 | 58.06 ▲7.19 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.23 ▲0.03 | 97.84 ▼1.59 | 42.01 ▼6.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- nmgr_flush_rewrite_rules
- theysaidso_admin_options
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'NMGR\\Dialog\\Modal' not found in wp-content/plugins/nm-gift-registry-and-wishlist-lite/includes/Dialog/Toast.php:7
- > PHP Fatal error
Uncaught Error: Class 'NMGR\\Tables\\Table' not found in wp-content/plugins/nm-gift-registry-and-wishlist-lite/includes/Tables/ItemsTable.php:7
- > PHP Fatal error
Uncaught Error: Class 'NMGR\\Tables\\Table' not found in wp-content/plugins/nm-gift-registry-and-wishlist-lite/includes/Tables/ItemsTotalsTable.php:8
- > PHP Fatal error
Uncaught Error: Class 'NMGR\\Tables\\Table' not found in wp-content/plugins/nm-gift-registry-and-wishlist-lite/includes/Tables/WishlistsTable.php:8
- > 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 on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
nm-gift-registry-and-wishlist-lite/nm-gift-registry-lite.php 77% from 13 tests
The entry point to "NM Gift Registry and Wishlist Lite" version 4.10 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nm-gift-registry-and-wishlist-lite.php" instead of "nm-gift-registry-lite.php")
- Description: The description should be shorter than 140 characters (currently 304 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin18,339 lines of code in 102 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 62 | 3,416 | 4,415 | 18,014 |
CSS | 3 | 37 | 0 | 157 |
SVG | 33 | 0 | 0 | 142 |
JavaScript | 4 | 5 | 14 | 26 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 50.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 227.00 |
Average method complexity | 3.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 3 | 5.56% |
▷ Concrete classes | 51 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 948 | |
▷ Static methods | 234 | 24.68% |
▷ Public methods | 781 | 82.38% |
▷ Protected methods | 104 | 10.97% |
▷ Private methods | 63 | 6.65% |
Functions | 185 | |
▷ Named functions | 167 | 90.27% |
▷ Anonymous functions | 18 | 9.73% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected