57% whizzy

Code Review | Whizzy

WordPress plugin Whizzy scored57%from 54 tests.

About plugin

  • Plugin page: whizzy
  • Plugin version: 1.1.18
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.3-5.9.0
  • WordPress version: 6.3.1
  • First release: Feb 13, 2018
  • Latest release: Mar 14, 2023
  • Number of updates: 40
  • Update frequency: every 46.5 days
  • Top authors: upqode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

4,000+ active /52,573 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3426.67 ▼21.12
Dashboard /wp-admin3.86 ▲0.5129.50 ▼33.34
Posts /wp-admin/edit.php3.86 ▲0.5030.79 ▼19.90
Add New Post /wp-admin/post-new.php3.86 ▼2.0327.21 ▼71.86
Media Library /wp-admin/upload.php3.86 ▲0.6328.87 ▼8.35
All Items /wp-admin/edit.php?post_type=whizzy_proof_gallery3.8625.45
Tags /wp-admin/edit-tags.php?taxonomy=whizzy-tag&post_type=whizzy_proof_gallery3.8624.40
Add New /wp-admin/post-new.php?post_type=whizzy_proof_gallery3.8629.57
Settings /wp-admin/edit.php?post_type=whizzy_proof_gallery&page=settings3.8630.68
Categories /wp-admin/edit-tags.php?taxonomy=whizzy-category&post_type=whizzy_proof_gallery3.8624.55
Clients /wp-admin/edit-tags.php?taxonomy=whizzy-client&post_type=whizzy_proof_gallery3.8629.12
Activities /wp-admin/edit.php?post_type=whizzy_proof_gallery&page=statistic3.8627.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,189 ▲44315.50 ▲1.1012.15 ▲10.2742.55 ▲1.38
Dashboard /wp-admin2,412 ▲2096.48 ▲0.54143.28 ▲37.0444.33 ▲1.17
Posts /wp-admin/edit.php2,311 ▲2113.35 ▲1.3655.03 ▲19.2335.25 ▼3.44
Add New Post /wp-admin/post-new.php1,570 ▲3017.45 ▼0.80634.72 ▼7.1535.88 ▼21.09
Media Library /wp-admin/upload.php1,453 ▲564.14 ▼0.1685.44 ▼18.1545.39 ▼3.72
All Items /wp-admin/edit.php?post_type=whizzy_proof_gallery1,3103.2845.3728.30
Tags /wp-admin/edit-tags.php?taxonomy=whizzy-tag&post_type=whizzy_proof_gallery1,4853.1841.9829.66
Add New /wp-admin/post-new.php?post_type=whizzy_proof_gallery3,2657.82204.7775.34
Settings /wp-admin/edit.php?post_type=whizzy_proof_gallery&page=settings1,5893.2140.8069.65
Categories /wp-admin/edit-tags.php?taxonomy=whizzy-category&post_type=whizzy_proof_gallery1,4883.1540.9328.98
Clients /wp-admin/edit-tags.php?taxonomy=whizzy-client&post_type=whizzy_proof_gallery1,5143.2241.0029.21
Activities /wp-admin/edit.php?post_type=whizzy_proof_gallery&page=statistic1,0123.0337.8924.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP2179,02614,77335,146
JSON80011,578
SVG2002,713
Sass622191,674
CSS181951021,587
JavaScript242562011,092
Markdown5880240
XML21034
YAML28031
HTML10017

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 code0.43
Average class complexity37.48
▷ Minimum class complexity1.00
▷ Maximum class complexity766.00
Average method complexity4.49
▷ Minimum method complexity1.00
▷ Maximum method complexity653.00
Code structure
Namespaces24
Interfaces9
Traits0
Classes159
▷ Abstract classes63.77%
▷ Concrete classes15396.23%
▷ Final classes00.00%
Methods1,856
▷ Static methods21411.53%
▷ Public methods1,59385.83%
▷ Protected methods19510.51%
▷ Private methods683.66%
Functions38
▷ Named functions2668.42%
▷ Anonymous functions1231.58%
Constants156
▷ Global constants85.13%
▷ Class constants14894.87%
▷ Public constants148100.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
FileSize - originalSize - compressedSavings
features/metaboxes/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
features/metaboxes/images/ico-delete.png0.70KB0.72KB0.00%
features/metaboxes/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%
features/metaboxes/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
features/metaboxes/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%