73% nichetable

Code Review | Best Responsive Comparison Table for Gutenberg Editor - NicheTable

WordPress plugin Best Responsive Comparison Table for Gutenberg Editor - NicheTable scored73%from 54 tests.

About plugin

  • Plugin page: nichetable
  • Plugin version: 2.8.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Sep 21, 2019
  • Latest release: Oct 13, 2023
  • Number of updates: 102
  • Update frequency: every 14.6 days
  • Top authors: tauhidpro (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

3,000+ active /47,229 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: ▲5.47MB] [CPU: ▲26.62ms] 75% from 4 tests

An overview of server-side resources used by Best Responsive Comparison Table for Gutenberg Editor - NicheTable
Please have a look at the following items
  • Extra RAM: The extra memory usage should kept under 5MB (currently 5.47MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.18 ▲5.7275.47 ▲28.99
Dashboard /wp-admin9.20 ▲5.9092.06 ▲36.74
Posts /wp-admin/edit.php9.21 ▲5.8575.46 ▲20.18
Add New Post /wp-admin/post-new.php10.31 ▲4.42116.57 ▲20.56
Media Library /wp-admin/upload.php9.21 ▲5.9877.22 ▲40.31
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.2165.10

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 226 new files
Database: no new tables, 9 new options
New WordPress options
fs_active_plugins
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
fs_accounts
theysaidso_admin_options
db_upgraded
widget_recent-comments
fs_debug_mode

Browser metrics Passed 4 tests

A check of browser resources used by Best Responsive Comparison Table for Gutenberg Editor - NicheTable
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲4014.27 ▼0.461.62 ▼0.4032.03 ▼10.97
Dashboard /wp-admin2,230 ▲505.68 ▲0.0186.52 ▼22.3145.18 ▼6.52
Posts /wp-admin/edit.php2,136 ▲361.99 ▲0.0136.73 ▼3.3335.46 ▲0.79
Add New Post /wp-admin/post-new.php1,525 ▼329.21 ▲6.03837.36 ▲219.9761.77 ▲8.84
Media Library /wp-admin/upload.php1,438 ▲384.20 ▲0.0795.64 ▼8.9043.05 ▲2.34
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0901.6926.7327.04

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
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/nichetable/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 9 options in the database
    • db_upgraded
    • widget_recent-posts
    • fs_active_plugins
    • fs_accounts
    • widget_recent-comments
    • fs_debug_mode
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function LayCnichetablewpwp\\Layouts\\add_action() in wp-content/plugins/nichetable/includes/table-importer/layout-endpoints.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function LayCnichetablewpwp\\Layouts\\add_action() in wp-content/plugins/nichetable/includes/table-importer/register-layout-components.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% 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
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

nichetable/nichetablewp.php 77% from 13 tests

"Best Responsive Comparison Table for Gutenberg Editor - NicheTable" version 2.8.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("nichetable.php" instead of "nichetablewp.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 188 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected35,405 lines of code in 176 files:
LanguageFilesBlank linesComment linesLines of code
PHP1288,12417,39334,438
CSS20145455
JavaScript53862225
Markdown1680214
SVG2101846
JSON10027

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity91.67
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes49
▷ Abstract classes24.08%
▷ Concrete classes4795.92%
▷ Final classes12.13%
Methods1,265
▷ Static methods20316.05%
▷ Public methods87669.25%
▷ Protected methods171.34%
▷ Private methods37229.41%
Functions137
▷ Named functions12087.59%
▷ Anonymous functions1712.41%
Constants154
▷ Global constants10064.94%
▷ Class constants5435.06%
▷ Public constants54100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
assets/list.png15.10KB0.57KB▼ 96.20%
freemius/assets/img/nichetable.png28.89KB9.19KB▼ 68.19%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%