77% hexa-team-responsive-grid-free

Code Review | Hexa Team Responsive Grid Free

WordPress plugin Hexa Team Responsive Grid Free scored77%from 54 tests.

About plugin

  • Plugin page: hexa-team-respons...
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.1-5.0.2
  • WordPress version: 6.3.1
  • First release: Jan 3, 2019
  • Latest release: Jan 5, 2019
  • Number of updates: 12
  • Update frequency: every 0.2 days
  • Top authors: suhailahmad64 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,094 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.60ms] Passed 4 tests

This is a short check of server-side resources used by Hexa Team Responsive Grid Free
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.31 ▼1.03
Dashboard /wp-admin3.33 ▼0.0154.29 ▼11.85
Posts /wp-admin/edit.php3.39 ▲0.0347.94 ▲1.75
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.71 ▼17.83
Media Library /wp-admin/upload.php3.26 ▲0.0335.89 ▲0.33
Team /wp-admin/edit.php?post_type=wct_team3.3037.92
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=wct_team3.2536.45
Add New /wp-admin/post-new.php?post_type=wct_team3.3544.03

Server storage [IO: ▲1.17MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Hexa Team Responsive Grid Free
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲8114.24 ▼0.132.18 ▲0.2243.47 ▲0.25
Dashboard /wp-admin2,230 ▲535.52 ▼0.1199.50 ▲7.9981.42 ▲38.68
Posts /wp-admin/edit.php2,156 ▲561.97 ▲0.0338.26 ▲0.3035.99 ▲2.35
Add New Post /wp-admin/post-new.php1,571 ▲3922.97 ▲0.00626.03 ▼13.62172.09 ▲120.82
Media Library /wp-admin/upload.php1,450 ▲504.14 ▼0.07113.08 ▲15.7272.32 ▲30.96
Team /wp-admin/edit.php?post_type=wct_team1,1251.9031.8329.19
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=wct_team1,3722.1227.2333.50
Add New /wp-admin/post-new.php?post_type=wct_team2,3707.61175.42137.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=wct_team
    • > Notice in wp-content/plugins/hexa-team-responsive-grid-free/index.php+54
    Undefined index: wct_position
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=wct_team
    • > Notice in wp-content/plugins/hexa-team-responsive-grid-free/index.php+58
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/post-new.php?post_type=wct_team
    • > Notice in wp-content/plugins/hexa-team-responsive-grid-free/index.php+55
    Undefined index: wct_facebook
    • > GET request to /wp-admin/post-new.php?post_type=wct_team
    • > Notice in wp-content/plugins/hexa-team-responsive-grid-free/index.php+56
    Undefined index: wct_twitter
    • > GET request to /wp-admin/post-new.php?post_type=wct_team
    • > Notice in wp-content/plugins/hexa-team-responsive-grid-free/index.php+57
    Undefined index: wct_linkedin
    • > GET request to /wp-admin/post-new.php?post_type=wct_team
    • > Notice in wp-content/plugins/hexa-team-responsive-grid-free/index.php+58
    Undefined index: wct_instagram

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hexa-team-responsive-grid-free/index.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === hexa-team-responsive-grid-free === )
  • Screenshots: Screenshot #1 (screenshot-1.png) image not found
The official readme.txt might help

hexa-team-responsive-grid-free/index.php 85% from 13 tests

The main file in "Hexa Team Responsive Grid Free" v. 2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("hexa-team-responsive-grid-free.php" instead of "index.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,729 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23271701,357
PHP15715182
CSS1129168
HTML118022

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 1.08MB with 0.83MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png24.24KB7.33KB▼ 69.73%
assets/banner-772x250.png275.99KB73.12KB▼ 73.51%
screenshot-1.png799.22KB179.61KB▼ 77.53%
images/hexa-icon.png3.12KB0.41KB▼ 86.90%