84% greenshift-animation-and-page-builder-blocks

Code Review | Greenshift - animation and page builder blocks

WordPress plugin Greenshift - animation and page builder blocks scored84%from 54 tests.

About plugin

  • Plugin page: greenshift-animat...
  • Plugin version: 7.5.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.5
  • WordPress version: 6.3.1
  • First release: Jan 16, 2022
  • Latest release: Nov 30, 2023
  • Number of updates: 328
  • Update frequency: every 2.1 days
  • Top authors: wpsoul (100%)

Code review

54 tests

User reviews

49 reviews

Install metrics

20,000+ active /854,453 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲1.10MB] [CPU: ▲9.39ms] Passed 4 tests

An overview of server-side resources used by Greenshift - animation and page builder blocks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.65 ▲1.1948.01 ▲4.33
Dashboard /wp-admin4.41 ▲1.0785.58 ▲29.45
Posts /wp-admin/edit.php4.45 ▲1.0955.91 ▲8.30
Add New Post /wp-admin/post-new.php7.32 ▲1.43108.31 ▲19.10
Media Library /wp-admin/upload.php4.26 ▲1.0344.10 ▲5.84
GreenShift /wp-admin/admin.php?page=greenshift_dashboard4.3039.79
Addons /wp-admin/admin.php?page=greenshift_dashboard-addons4.3141.45
Add New /wp-admin/post-new.php?post_type=wp_block7.3191.78
Stylebook /wp-admin/admin.php?page=greenshift_stylebook4.2240.84
Manage Licenses /wp-admin/admin.php?page=greenshift-license4.2840.21
Settings /wp-admin/admin.php?page=greenshift4.2639.71
Demo Import /wp-admin/admin.php?page=greenshift_demo4.3041.04
Contact Us /wp-admin/admin.php?page=greenshift_contact4.2739.23
All Patterns /wp-admin/edit.php?post_type=wp_block4.3746.42
Import/Export /wp-admin/admin.php?page=greenshift_import4.3840.68

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 169 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
gspb_edd_licenses

Browser metrics Passed 4 tests

An overview of browser requirements for Greenshift - animation and page builder blocks
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲10914.67 ▲0.281.73 ▼0.2141.46 ▼7.98
Dashboard /wp-admin2,264 ▲905.56 ▼0.0193.35 ▼2.7677.79 ▲38.73
Posts /wp-admin/edit.php2,245 ▲1421.95 ▼0.0538.02 ▼3.3035.71 ▼4.76
Add New Post /wp-admin/post-new.php6,303 ▲4,77724.11 ▲1.17915.06 ▲241.6135.51 ▼19.17
Media Library /wp-admin/upload.php1,484 ▲844.12 ▼0.11102.39 ▼12.7276.22 ▲31.92
GreenShift /wp-admin/admin.php?page=greenshift_dashboard1,1162.0024.5537.74
Addons /wp-admin/admin.php?page=greenshift_dashboard-addons1,2301.9924.5238.57
Add New /wp-admin/post-new.php?post_type=wp_block6,26524.311,101.3646.87
Stylebook /wp-admin/admin.php?page=greenshift_stylebook8641.6628.3026.44
Manage Licenses /wp-admin/admin.php?page=greenshift-license1,2502.1421.9930.63
Settings /wp-admin/admin.php?page=greenshift1,2332.0325.9440.94
Demo Import /wp-admin/admin.php?page=greenshift_demo1,1311.6524.1328.19
Contact Us /wp-admin/admin.php?page=greenshift_contact1,0271.9924.2324.91
All Patterns /wp-admin/edit.php?post_type=wp_block1,2256.6065.7563.72
Import/Export /wp-admin/admin.php?page=greenshift_import1,1201.7926.4838.66

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • gspb_edd_licenses
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/greenshift-animation-and-page-builder-blocks/includes/jsoptimization.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: block, animation, gsap, gutenberg addons, gutenberg...

greenshift-animation-and-page-builder-blocks/plugin.php 92% from 13 tests

Analyzing the main PHP file in "Greenshift - animation and page builder blocks" version 7.5.3
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("greenshift-animation-and-page-builder-blocks.php" instead of "plugin.php")

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
Success! There were no dangerous files found in this plugin49,372 lines of code in 146 files:
LanguageFilesBlank linesComment linesLines of code
JSON331038,338
PHP321,4356719,624
JavaScript4879660704
CSS14850482
SVG1800171
XML10053

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity48.57
▷ Minimum class complexity3.00
▷ Maximum class complexity127.00
Average method complexity6.48
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods61
▷ Static methods58.20%
▷ Public methods6098.36%
▷ Protected methods00.00%
▷ Private methods11.64%
Functions63
▷ Named functions5485.71%
▷ Anonymous functions914.29%
Constants25
▷ Global constants2496.00%
▷ Class constants14.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.22MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
templates/admin/img/woomini.png22.10KB7.84KB▼ 64.53%
templates/admin/img/chartmini.png99.02KB33.00KB▼ 66.67%
templates/admin/img/querymini.png26.16KB9.63KB▼ 63.20%
templates/admin/img/cursor.png8.16KB5.31KB▼ 34.89%
templates/admin/img/gsapmini.png22.89KB8.41KB▼ 63.26%