84% responsive-table

Code Review | Responsive Table

WordPress plugin Responsive Table scored84%from 54 tests.

About plugin

  • Plugin page: responsive-table
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-3.9
  • WordPress version: 6.3.1
  • First release: Dec 3, 2014
  • Latest release: Dec 6, 2014
  • Number of updates: 7
  • Update frequency: every 3.1 days
  • Top authors: buboiasinine (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

500+ active /13,343 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.03MB] [CPU: ▼5.79ms] Passed 4 tests

An overview of server-side resources used by Responsive Table
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.90 ▲0.75
Dashboard /wp-admin3.34 ▲0.0356.58 ▲4.14
Posts /wp-admin/edit.php3.39 ▲0.0348.71 ▼6.23
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.95 ▼19.72
Media Library /wp-admin/upload.php3.26 ▲0.0338.80 ▲2.03

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Responsive Table
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.26 ▼0.051.73 ▼0.0145.38 ▲2.81
Dashboard /wp-admin2,210 ▲335.55 ▼0.1198.72 ▲10.9262.71 ▲17.27
Posts /wp-admin/edit.php2,118 ▲181.98 ▼0.0434.68 ▼1.0435.31 ▼4.61
Add New Post /wp-admin/post-new.php1,539 ▲1323.55 ▲0.32690.69 ▼7.9266.17 ▲10.78
Media Library /wp-admin/upload.php1,412 ▲94.14 ▲0.08103.76 ▲0.8272.30 ▲22.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 3× 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/responsive-table/settings_page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-table/settings_page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/responsive-table/function.php:154

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • License uri: Invalid URI found ("GPLv2 or later")
  • Plugin Name: Please specify the plugin name on the first line ( === responsive-table === )
Please take inspiration from this readme.txt

responsive-table/responsive-table.php Passed 13 tests

"Responsive Table" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
44 characters long description:
Transform your table in a mobile view design

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
Good job! No executable or dangerous file extensions detected255 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP320029255

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions5
▷ Named functions5100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/rt-icon.png1.44KB0.61KB▼ 57.84%