84% ssp-stacktable-tables

Code Review | SSP Stacktable Tables

WordPress plugin SSP Stacktable Tables scored84%from 54 tests.

About plugin

  • Plugin page: ssp-stacktable-ta...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.5.1
  • WordPress version: 6.3.1
  • First release: Mar 13, 2017
  • Latest release: Sep 20, 2020
  • Number of updates: 9
  • Update frequency: every 142.8 days
  • Top authors: DBAR Productions (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active /1,537 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by SSP Stacktable Tables
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0445.99 ▲2.25
Dashboard /wp-admin3.35 ▲0.0552.70 ▲1.18
Posts /wp-admin/edit.php3.40 ▲0.0449.48 ▼7.10
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.28 ▼12.55
Media Library /wp-admin/upload.php3.27 ▲0.0437.97 ▲1.08

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
ssp_stacktable_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for SSP Stacktable Tables
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.80 ▲0.222.01 ▼0.0242.94 ▼0.86
Dashboard /wp-admin2,225 ▲375.85 ▼0.05102.09 ▼5.3840.02 ▼5.56
Posts /wp-admin/edit.php2,105 ▲132.01 ▲0.0035.16 ▼6.0833.19 ▼3.69
Add New Post /wp-admin/post-new.php1,546 ▲2723.50 ▲0.32675.05 ▲41.9765.95 ▲9.17
Media Library /wp-admin/upload.php1,401 ▲194.17 ▼0.0497.60 ▼1.9242.47 ▼1.40

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ssp-stacktable-tables/ssp-stacktable-tables.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: responsive, tables, stacktable, responsive tables, mobile

ssp-stacktable-tables/ssp-stacktable-tables.php Passed 13 tests

The entry point to "SSP Stacktable Tables" version 1.0.0 is a PHP file that has certain tags in its header comment area
88 characters long description:
Reformat tables for mobile devices using the jQuery Stacktable plugin from John Polacek.

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
No dangerous file extensions were detected401 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript43229220
PHP21725169
CSS25112

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin