84% frizzly

Code Review | Frizzly - Social Share Buttons

WordPress plugin Frizzly - Social Share Buttons scored 84% from 54 tests.

About plugin

  • Plugin page: frizzly
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.5.3
  • WordPress version: 6.3.1
  • First release: Aug 9, 2014
  • Latest release: Nov 28, 2020
  • Number of updates: 58
  • Update frequency: every 39.7 days
  • Top authors: mrsztuczkens (89.66%)abhishekfdd (12.07%)

Code review

54 tests

User reviews

20 reviews

Install metrics

800+ active / 31,530 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼5.14ms] Passed 4 tests

This is a short check of server-side resources used by Frizzly - Social Share Buttons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2541.82 ▼0.77
Dashboard /wp-admin3.67 ▲0.3648.59 ▼3.31
Posts /wp-admin/edit.php3.72 ▲0.3648.82 ▲1.50
Add New Post /wp-admin/post-new.php5.80 ▼0.0877.16 ▼17.98
Media Library /wp-admin/upload.php3.59 ▲0.3639.02 ▲8.38
Frizzly /wp-admin/options-general.php?page=frizzly_settings3.5937.38

Server storage [IO: ▲1.78MB] [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: 78 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
frizzly_version
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Frizzly - Social Share Buttons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,970 ▲23514.09 ▼0.7110.42 ▲8.4438.35 ▼3.68
Dashboard /wp-admin2,229 ▲415.88 ▼0.00111.74 ▲3.2745.87 ▲0.08
Posts /wp-admin/edit.php2,111 ▲222.18 ▲0.2043.03 ▲3.2238.49 ▲0.47
Add New Post /wp-admin/post-new.php6,784 ▲5,24220.57 ▲2.23929.55 ▲315.2059.64 ▲12.06
Media Library /wp-admin/upload.php1,414 ▲234.23 ▲0.0395.76 ▼1.1542.08 ▼0.54
Frizzly /wp-admin/options-general.php?page=frizzly_settings1,7985.09123.0943.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • frizzly_version
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Frizzly_Client_Submodule' not found in wp-content/plugins/frizzly/includes/client/modules/share/Frizzly_Client_General_Submodule.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Frizzly_Admin_Module' not found in wp-content/plugins/frizzly/includes/admin/modules/Frizzly_Admin_Share_Module.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Frizzly_Client_Submodule' not found in wp-content/plugins/frizzly/includes/client/modules/share/Frizzly_Client_Content_Submodule.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Frizzly_Ajax_Handler' not found in wp-content/plugins/frizzly/includes/ajax/Frizzly_Share_By_Email_Ajax_Handler.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Frizzly_Client_Submodule' not found in wp-content/plugins/frizzly/includes/client/modules/share/Frizzly_Client_Image_Submodule.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Frizzly_Options' not found in wp-content/plugins/frizzly/includes/includes/options/Frizzly_Share_Options.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Frizzly_Admin_Button_Settings_Submodule_Base' not found in wp-content/plugins/frizzly/includes/admin/modules/share/Frizzly_Admin_Content_Submodule.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Frizzly_Meta' not found in wp-content/plugins/frizzly/includes/includes/meta/Frizzly_Meta_Social_Data.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Frizzly_Admin_Button_Settings_Submodule_Base' not found in wp-content/plugins/frizzly/includes/admin/modules/share/Frizzly_Admin_Image_Submodule.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Frizzly_Admin_Submodule' not found in wp-content/plugins/frizzly/includes/admin/modules/share/Frizzly_Admin_Button_Settings_Submodule_Base.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
You can take inspiration from this readme.txt

frizzly/frizzly.php Passed 13 tests

The principal PHP file in "Frizzly - Social Share Buttons" v. 1.1.0 is loaded by WordPress automatically on each request
55 characters long description:
Great-looking social share icons all over your website.

Code Analysis Passed 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 plugin19,623 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33,5512,23113,625
CSS5157213,034
PHP434382172,279
SVG100685

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.17
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes41
▷ Abstract classes614.63%
▷ Concrete classes3585.37%
▷ Final classes12.86%
Methods192
▷ Static methods63.12%
▷ Public methods15982.81%
▷ Protected methods42.08%
▷ Private methods2915.10%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/Pinterest-badge-36px.png1.22KB0.58KB▼ 52.72%
images/settings_link.png3.63KB2.18KB▼ 40.06%
images/settings_tabs.png2.04KB1.20KB▼ 41.45%