89% wp-fjqgrid

Code Review | WPF-jqGrid

WordPress plugin WPF-jqGrid scored 89% from 54 tests.

About plugin

  • Plugin page: wp-fjqgrid
  • Plugin version: 0.20
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.4-5.8.2
  • WordPress version: 6.3.1
  • First release: Jan 28, 2014
  • Latest release: Nov 30, 2021
  • Number of updates: 34
  • Update frequency: every 84.2 days
  • Top authors: faina09 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

30+ active / 5,428 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.12MB] [CPU: ▼3.89ms] Passed 4 tests

A check of server-side resources used by WPF-jqGrid
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.74 ▲4.97
Dashboard /wp-admin3.43 ▲0.1247.41 ▼4.11
Posts /wp-admin/edit.php3.54 ▲0.1948.20 ▲2.98
Add New Post /wp-admin/post-new.php6.01 ▲0.1297.80 ▼6.49
Media Library /wp-admin/upload.php3.35 ▲0.1233.99 ▼7.94
WPF-jqGrid /wp-admin/options-general.php?page=wpf-jqgrid3.3236.97

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WPF-jqGrid
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲18514.41 ▲0.168.04 ▲6.1545.63 ▲1.35
Dashboard /wp-admin2,210 ▲225.91 ▲0.04114.68 ▲1.8444.96 ▼13.19
Posts /wp-admin/edit.php2,096 ▲72.13 ▲0.0840.70 ▲1.7237.45 ▼4.12
Add New Post /wp-admin/post-new.php1,537 ▲420.98 ▼2.42732.19 ▲18.8764.70 ▲1.95
Media Library /wp-admin/upload.php1,389 ▼24.21 ▲0.08108.57 ▼0.5346.36 ▼3.81
WPF-jqGrid /wp-admin/options-general.php?page=wpf-jqgrid9622.0224.8730.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed: You can look at the official readme.txt

wp-fjqgrid/index.php 85% from 13 tests

The main PHP file in "WPF-jqGrid" ver. 0.20 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-fjqgrid.php" instead of "index.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected22,494 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript473989,23021,263
PHP61282551,053
PO File33441136
SQL1101823
XML10013
CSS32156

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity25.67
▷ Minimum class complexity5.00
▷ Maximum class complexity56.00
Average method complexity4.22
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods46
▷ Static methods36.52%
▷ Public methods3473.91%
▷ Protected methods00.00%
▷ Private methods1226.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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
16 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
themes/sunny/images/ui-icons_3d3d3d_256x240.png6.79KB4.20KB▼ 38.05%
themes/sunny/images/ui-icons_ffe180_256x240.png4.49KB4.20KB▼ 6.46%
themes/sunny/images/ui-icons_bd7b00_256x240.png4.49KB4.20KB▼ 6.46%
themes/sunny/images/ui-icons_fadc7a_256x240.png4.49KB4.20KB▼ 6.46%
themes/sunny/images/ui-icons_d19405_256x240.png4.49KB4.20KB▼ 6.46%