84% indiv-for-tablepress

Code Review | inDiv for TablePress

WordPress plugin inDiv for TablePress scored 84% from 54 tests.

About plugin

  • Plugin page: indiv-for-tablepress
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.6
  • WordPress version: 6.3.1
  • First release: Apr 14, 2020
  • Latest release: Jan 11, 2021
  • Number of updates: 9
  • Update frequency: every 40.4 days
  • Top authors: nomadjimbob (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 2,700 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.56ms] Passed 4 tests

A check of server-side resources used by inDiv for TablePress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.26 ▼2.96
Dashboard /wp-admin3.34 ▲0.0447.01 ▼1.99
Posts /wp-admin/edit.php3.39 ▲0.0446.30 ▼1.40
Add New Post /wp-admin/post-new.php5.92 ▲0.0481.65 ▼19.87
Media Library /wp-admin/upload.php3.26 ▲0.0437.44 ▲3.47

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for inDiv for TablePress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▼0.071.76 ▼0.0639.69 ▼7.60
Dashboard /wp-admin2,206 ▲185.81 ▼0.0897.06 ▼15.3542.45 ▼0.95
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0440.02 ▲0.3138.85 ▲7.31
Add New Post /wp-admin/post-new.php1,535 ▲2123.31 ▲5.73652.93 ▲5.4459.26 ▲3.66
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.04100.01 ▼31.3041.01 ▼12.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/indiv-for-tablepress/indiv-tablepress.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: tablepress

indiv-for-tablepress/indiv-tablepress.php 85% from 13 tests

The main file in "inDiv for TablePress" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 187 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("indiv-for-tablepress.php" instead of "indiv-tablepress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin151 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP136123151

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes1100.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods11
▷ Static methods1090.91%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin