Benchmarks
Plugin footprint 65% 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.17MB] [CPU: ▼36.56ms] Passed 4 tests
This is a short check of server-side resources used by Whizzy
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 26.67 ▼21.12 |
Dashboard /wp-admin | 3.86 ▲0.51 | 29.50 ▼33.34 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 30.79 ▼19.90 |
Add New Post /wp-admin/post-new.php | 3.86 ▼2.03 | 27.21 ▼71.86 |
Media Library /wp-admin/upload.php | 3.86 ▲0.63 | 28.87 ▼8.35 |
All Items /wp-admin/edit.php?post_type=whizzy_proof_gallery | 3.86 | 25.45 |
Tags /wp-admin/edit-tags.php?taxonomy=whizzy-tag&post_type=whizzy_proof_gallery | 3.86 | 24.40 |
Add New /wp-admin/post-new.php?post_type=whizzy_proof_gallery | 3.86 | 29.57 |
Settings /wp-admin/edit.php?post_type=whizzy_proof_gallery&page=settings | 3.86 | 30.68 |
Categories /wp-admin/edit-tags.php?taxonomy=whizzy-category&post_type=whizzy_proof_gallery | 3.86 | 24.55 |
Clients /wp-admin/edit-tags.php?taxonomy=whizzy-client&post_type=whizzy_proof_gallery | 3.86 | 29.12 |
Activities /wp-admin/edit.php?post_type=whizzy_proof_gallery&page=statistic | 3.86 | 27.80 |
Server storage [IO: ▲8.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 409 new files
Database: no new tables, 7 new options
New WordPress options |
---|
whizzy_settings |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Whizzy
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,189 ▲443 | 15.50 ▲1.10 | 12.15 ▲10.27 | 42.55 ▲1.38 |
Dashboard /wp-admin | 2,412 ▲209 | 6.48 ▲0.54 | 143.28 ▲37.04 | 44.33 ▲1.17 |
Posts /wp-admin/edit.php | 2,311 ▲211 | 3.35 ▲1.36 | 55.03 ▲19.23 | 35.25 ▼3.44 |
Add New Post /wp-admin/post-new.php | 1,570 ▲30 | 17.45 ▼0.80 | 634.72 ▼7.15 | 35.88 ▼21.09 |
Media Library /wp-admin/upload.php | 1,453 ▲56 | 4.14 ▼0.16 | 85.44 ▼18.15 | 45.39 ▼3.72 |
All Items /wp-admin/edit.php?post_type=whizzy_proof_gallery | 1,310 | 3.28 | 45.37 | 28.30 |
Tags /wp-admin/edit-tags.php?taxonomy=whizzy-tag&post_type=whizzy_proof_gallery | 1,485 | 3.18 | 41.98 | 29.66 |
Add New /wp-admin/post-new.php?post_type=whizzy_proof_gallery | 3,265 | 7.82 | 204.77 | 75.34 |
Settings /wp-admin/edit.php?post_type=whizzy_proof_gallery&page=settings | 1,589 | 3.21 | 40.80 | 69.65 |
Categories /wp-admin/edit-tags.php?taxonomy=whizzy-category&post_type=whizzy_proof_gallery | 1,488 | 3.15 | 40.93 | 28.98 |
Clients /wp-admin/edit-tags.php?taxonomy=whizzy-client&post_type=whizzy_proof_gallery | 1,514 | 3.22 | 41.00 | 29.21 |
Activities /wp-admin/edit.php?post_type=whizzy_proof_gallery&page=statistic | 1,012 | 3.03 | 37.89 | 24.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-includes/class-wp-list-util.php+170
Undefined index: type
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- can_compress_scripts
- whizzy_settings
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 18 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=whizzy_proof_gallery&page=statistic
- > Notice in wp-includes/class-wp-list-util.php+170
Undefined index: type
- > GET request to /wp-admin/post-new.php?post_type=whizzy_proof_gallery
- > Notice in wp-content/plugins/whizzy/features/metaboxes/init.php+582
Undefined index: post
- > GET request to /wp-admin/edit.php?post_type=whizzy_proof_gallery&page=settings
- > Notice in wp-content/plugins/whizzy/whizzy-advanced.php+57
Undefined index: watermark
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/whizzy/features/metaboxes/mail.php
- 116× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Frame' not found in wp-content/plugins/whizzy/lib/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php:30
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\TrueType\\File' not found in wp-content/plugins/whizzy/lib/vendor/phenx/php-font-lib/src/FontLib/WOFF/File.php:20
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/whizzy/lib/vendor/phenx/php-font-lib/src/FontLib/Table/Type/maxp.php:17
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/whizzy/lib/vendor/phenx/php-svg-lib/src/Svg/Tag/Polygon.php:11
- > PHP Notice
Undefined index: site in wp-content/plugins/whizzy/features/metaboxes/mail.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\TrueType\\Header' not found in wp-content/plugins/whizzy/lib/vendor/phenx/php-font-lib/src/FontLib/WOFF/Header.php:16
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/whizzy/lib/vendor/phenx/php-font-lib/src/FontLib/Table/Type/post.php:18
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\TrueType\\File' not found in wp-content/plugins/whizzy/lib/vendor/phenx/php-font-lib/src/FontLib/OpenType/File.php:16
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/whizzy/lib/vendor/dompdf/dompdf/lib/Cpdf.php on line 454
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/whizzy/lib/vendor/dompdf/dompdf/lib/Cpdf.php on line 468
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=whizzy_proof_gallery
- > Javascript (severe) in unknown
/wp-content/plugins/whizzy/assets/js/admin-shortcodes.min.js 0:45 Uncaught ReferenceError: vc is not defined
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
5 plugin tags: proof, images, gallery, photography, proofing
whizzy/whizzy.php Passed 13 tests
Analyzing the main PHP file in "Whizzy" version 1.1.18
31 characters long description:
WordPress photo gallery plugin.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin54,112 lines of code in 285 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 217 | 9,026 | 14,773 | 35,146 |
JSON | 8 | 0 | 0 | 11,578 |
SVG | 2 | 0 | 0 | 2,713 |
Sass | 6 | 221 | 9 | 1,674 |
CSS | 18 | 195 | 102 | 1,587 |
JavaScript | 24 | 256 | 201 | 1,092 |
Markdown | 5 | 88 | 0 | 240 |
XML | 2 | 1 | 0 | 34 |
YAML | 2 | 8 | 0 | 31 |
HTML | 1 | 0 | 0 | 17 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 653)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 37.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 766.00 |
Average method complexity | 4.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 653.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 159 | |
▷ Abstract classes | 6 | 3.77% |
▷ Concrete classes | 153 | 96.23% |
▷ Final classes | 0 | 0.00% |
Methods | 1,856 | |
▷ Static methods | 214 | 11.53% |
▷ Public methods | 1,593 | 85.83% |
▷ Protected methods | 195 | 10.51% |
▷ Private methods | 68 | 3.66% |
Functions | 38 | |
▷ Named functions | 26 | 68.42% |
▷ Anonymous functions | 12 | 31.58% |
Constants | 156 | |
▷ Global constants | 8 | 5.13% |
▷ Class constants | 148 | 94.87% |
▷ Public constants | 148 | 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
15 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
features/metaboxes/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
features/metaboxes/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
features/metaboxes/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
features/metaboxes/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
features/metaboxes/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |