84% wp-responsive-table

Code Review | WP Responsive Table

WordPress plugin WP Responsive Table scored 84% from 54 tests.

About plugin

  • Plugin page: wp-responsive-table
  • Plugin version: 1.2.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Mar 20, 2018
  • Latest release: Jan 16, 2021
  • Number of updates: 54
  • Update frequency: every 19.1 days
  • Top authors: processby (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

9,000+ active / 48,829 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.13MB] [CPU: ▼2.40ms] Passed 4 tests

An overview of server-side resources used by WP Responsive Table
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1737.90 ▼2.95
Dashboard /wp-admin3.42 ▲0.1249.83 ▼6.19
Posts /wp-admin/edit.php3.53 ▲0.1847.58 ▲0.57
Add New Post /wp-admin/post-new.php6.00 ▲0.1286.61 ▼1.03
Media Library /wp-admin/upload.php3.34 ▲0.1137.28 ▲4.56

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Responsive Table
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲14013.69 ▼0.694.87 ▲2.9739.14 ▼4.68
Dashboard /wp-admin2,211 ▲315.91 ▲0.0395.67 ▼11.8340.18 ▼5.92
Posts /wp-admin/edit.php2,094 ▲52.04 ▲0.0134.78 ▼2.7330.27 ▼4.67
Add New Post /wp-admin/post-new.php1,530 ▲723.02 ▼0.15671.03 ▲36.1862.99 ▼4.75
Media Library /wp-admin/upload.php1,393 ▲24.19 ▼0.1396.06 ▼3.9142.28 ▼5.24

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/wp-responsive-table/src/Admin/Customizer/CustomizeDonate.php:6

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

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Responsive table settings), #2 (Scrollbar on narrow screen)
The official readme.txt is a good inspiration

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

The main PHP script in "WP Responsive Table" version 1.2.6 is automatically included on every request by WordPress
59 characters long description:
Makes HTML tables horizontally scrollable on a small screen

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,364 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP183143181,049
JSON31072
Markdown153070
CSS26363
PO File1212359
JavaScript212051

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity7.58
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces1
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods66
▷ Static methods57.58%
▷ Public methods6293.94%
▷ Protected methods00.00%
▷ Private methods46.06%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.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.13MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png71.10KB31.15KB▼ 56.19%
assets/frontend/img/sort-asc.png3.32KB2.95KB▼ 11.37%
assets/frontend/img/sort-desc.png3.33KB2.94KB▼ 11.90%
screenshot-1.png51.30KB21.96KB▼ 57.20%