83% nixwood-grid-for-elementor

Code Review | Nixwood Grid for Elementor

WordPress plugin Nixwood Grid for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: nixwood-grid-for-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Dec 21, 2021
  • Latest release: Dec 21, 2021
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: nixwood (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /320 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.83ms] Passed 4 tests

This is a short check of server-side resources used by Nixwood Grid for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.43 ▲1.62
Dashboard /wp-admin3.36 ▲0.0651.25 ▼3.10
Posts /wp-admin/edit.php3.47 ▲0.1253.91 ▲3.65
Add New Post /wp-admin/post-new.php5.94 ▲0.0694.31 ▼16.81
Media Library /wp-admin/upload.php3.28 ▲0.0636.59 ▼1.03

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Nixwood Grid for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.35 ▼0.001.71 ▲0.0845.85 ▲6.24
Dashboard /wp-admin2,209 ▲325.56 ▼0.1094.80 ▼0.5940.90 ▼1.68
Posts /wp-admin/edit.php2,120 ▲231.99 ▼0.1340.32 ▲5.3038.19 ▼0.69
Add New Post /wp-admin/post-new.php1,543 ▲1723.16 ▼0.02659.62 ▼12.6161.52 ▲9.78
Media Library /wp-admin/upload.php1,414 ▲114.21 ▼0.04102.71 ▼1.0144.13 ▼1.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Nixwoodgrid\\did_action() in wp-content/plugins/nixwood-grid-for-elementor/nixwoodgrid.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • License uri: Please fix this invalid URI: "nixwood.com"
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

nixwood-grid-for-elementor/nixwoodgrid.php 85% from 13 tests

The primary PHP file in "Nixwood Grid for Elementor" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("nixwood-grid-for-elementor.php" instead of "nixwoodgrid.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,275 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP13165172906
JSON200369

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods64
▷ Static methods46.25%
▷ Public methods4570.31%
▷ Protected methods00.00%
▷ Private methods1929.69%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
There were not PNG files found in your plugin