74% snappy-list-builder

Code Review | Snappy List Builder

WordPress plugin Snappy List Builder scored74%from 54 tests.

About plugin

  • Plugin page: snappy-list-builder
  • Plugin version: 1.0.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Aug 19, 2015
  • Latest release: Apr 23, 2020
  • Number of updates: 35
  • Update frequency: every 48.8 days
  • Top authors: madesnappy (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /3,925 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲3.41MB] [CPU: ▲22.83ms] Passed 4 tests

A check of server-side resources used by Snappy List Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /6.67 ▲3.2161.46 ▲19.66
Dashboard /wp-admin6.75 ▲3.4475.46 ▲20.22
Posts /wp-admin/edit.php6.80 ▲3.4579.91 ▲27.14
Add New Post /wp-admin/post-new.php9.44 ▲3.55124.51 ▲24.31
Media Library /wp-admin/upload.php6.75 ▲3.5366.96 ▲30.71
Subscribers /wp-admin/edit.php?post_type=slb_subscriber6.7173.68
Email Lists /wp-admin/edit.php?post_type=slb_list6.7158.11
Import Subscribers /wp-admin/admin.php?page=slb_import_admin_page6.6660.76
Plugin Options /wp-admin/admin.php?page=slb_options_admin_page6.7164.63
Dashboard /wp-admin/admin.php?page=slb_dashboard_admin_page6.5755.18

Server storage [IO: ▲7.09MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 246 new files
Database: 1 new table, 7 new options
New tables
wp_slb_reward_links
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
acf_version
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Snappy List Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲17913.53 ▼0.908.23 ▲6.5739.42 ▼2.49
Dashboard /wp-admin2,241 ▲645.67 ▲0.0193.27 ▲0.0244.61 ▲2.67
Posts /wp-admin/edit.php2,143 ▲402.05 ▲0.0340.68 ▲2.8934.66 ▲0.94
Add New Post /wp-admin/post-new.php6,688 ▲5,16027.71 ▲4.491,101.81 ▲425.3441.58 ▼10.20
Media Library /wp-admin/upload.php1,978 ▲5818.21 ▲4.01221.72 ▲115.5549.23 ▲6.25
Subscribers /wp-admin/edit.php?post_type=slb_subscriber1,0872.0034.9727.85
Email Lists /wp-admin/edit.php?post_type=slb_list1,1061.9332.7829.79
Import Subscribers /wp-admin/admin.php?page=slb_import_admin_page1,0683.0843.6726.05
Plugin Options /wp-admin/admin.php?page=slb_options_admin_page1,6696.78130.8959.42
Dashboard /wp-admin/admin.php?page=slb_dashboard_admin_page8102.0425.2526.87

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
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-includes/class-wpdb.php+789
    Undefined property: wpdb::$post
  • Zombie WordPress options detected upon uninstall: 7 options
    • acf_version
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 78× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/snappy-list-builder/lib/advanced-custom-fields/includes/fields/class-acf-field-image.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/snappy-list-builder/lib/advanced-custom-fields/includes/fields/class-acf-field-email.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/snappy-list-builder/lib/advanced-custom-fields/includes/fields/class-acf-field-radio.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'ACF_Field' not found in wp-content/plugins/snappy-list-builder/lib/advanced-custom-fields/includes/fields/class-acf-field-user.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/snappy-list-builder/lib/advanced-custom-fields/includes/admin/views/html-location-group.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/snappy-list-builder/lib/advanced-custom-fields/includes/fields/class-acf-field-number.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/snappy-list-builder/lib/advanced-custom-fields/includes/fields/class-acf-field-button-group.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/snappy-list-builder/lib/advanced-custom-fields/includes/fields/class-acf-field-link.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_add_deprecated_filter() in wp-content/plugins/snappy-list-builder/lib/advanced-custom-fields/includes/deprecated.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_get_location_rule_types() in wp-content/plugins/snappy-list-builder/lib/advanced-custom-fields/includes/admin/views/html-location-rule.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

snappy-list-builder/snappy-list-builder.php 92% from 13 tests

The principal PHP file in "Snappy List Builder" v. 1.0.1.7 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 204 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected89,754 lines of code in 191 files:
LanguageFilesBlank linesComment linesLines of code
PO File3123,20838,00848,817
JavaScript146,8346,69422,445
PHP13111,43218,00116,638
CSS12218601,686
JSON100124
SVG118030
Markdown111014

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity12.16
▷ Minimum class complexity1.00
▷ Maximum class complexity56.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes98
▷ Abstract classes00.00%
▷ Concrete classes98100.00%
▷ Final classes00.00%
Methods636
▷ Static methods00.00%
▷ Public methods636100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions488
▷ Named functions488100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/advanced-custom-fields/assets/inc/datepicker/images/ui-icons_ffffff_256x240.png3.68KB4.17KB0.00%
lib/advanced-custom-fields/assets/inc/datepicker/images/ui-bg_highlight-soft_0_ffffff_1x100.png0.08KB0.08KB0.00%
lib/advanced-custom-fields/assets/images/acf-logo.png3.40KB3.39KB0.23%
lib/advanced-custom-fields/assets/inc/datepicker/images/ui-icons_DDDDDD_256x240.png3.68KB4.17KB0.00%
lib/advanced-custom-fields/assets/inc/datepicker/images/ui-icons_444444_256x240.png3.68KB4.17KB0.00%