90% make-tables-responsive

Code Review | Make Tables Responsive

WordPress plugin Make Tables Responsive scored90%from 54 tests.

About plugin

  • Plugin page: make-tables-respo...
  • Plugin version: 1.7.0
  • PHP compatiblity: 5.3.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3.2
  • WordPress version: 6.3.1
  • First release: Nov 7, 2017
  • Latest release: Oct 31, 2023
  • Number of updates: 70
  • Update frequency: every 31.2 days
  • Top authors: nnikolov (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

4,000+ active /43,838 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▲3.00ms] Passed 4 tests

Analyzing server-side resources used by Make Tables Responsive
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2652.54 ▲12.47
Dashboard /wp-admin3.55 ▲0.2058.39 ▼2.22
Posts /wp-admin/edit.php3.67 ▲0.3154.37 ▲9.47
Add New Post /wp-admin/post-new.php6.13 ▲0.2489.70 ▼7.39
Media Library /wp-admin/upload.php3.48 ▲0.2445.74 ▲12.13
Make Tables Responsive /wp-admin/options-general.php?page=make-tables-responsive3.4439.93

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

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

Browser metrics Passed 4 tests

Make Tables Responsive: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1414.23 ▼0.501.67 ▲0.0042.45 ▲0.01
Dashboard /wp-admin2,199 ▲195.58 ▼0.1193.97 ▲3.0242.27 ▼2.24
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0334.59 ▼3.7733.26 ▼3.39
Add New Post /wp-admin/post-new.php1,529 ▼023.10 ▼0.07632.28 ▼51.1253.78 ▼6.85
Media Library /wp-admin/upload.php1,401 ▼24.21 ▼0.0196.57 ▲0.3741.30 ▼2.70
Make Tables Responsive /wp-admin/options-general.php?page=make-tables-responsive2,0403.4075.7532.15

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 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 everything seems fine, this is not an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: mobile, responsive, tables

make-tables-responsive/make-tables-responsive.php Passed 13 tests

"Make Tables Responsive" version 1.7.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
105 characters long description:
Automatically makes the HTML tables in your posts, pages, and widgets to be responsive (mobile-friendly).

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
Success! There were no dangerous files found in this plugin1,804 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12992671,755
JavaScript15549

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.43
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%
Functions28
▷ Named functions2796.43%
▷ Anonymous functions13.57%
Constants1
▷ Global constants1100.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
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/logo32px.png3.79KB1.03KB▼ 72.85%