63% footable

Code Review | FooTable

WordPress plugin FooTable scored63%from 54 tests.

About plugin

  • Plugin page: footable
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: Mar 4, 2013
  • Latest release: Apr 16, 2014
  • Number of updates: 12
  • Update frequency: every 34.2 days
  • Top authors: bradvin (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

3,000+ active /45,878 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.66MB] [CPU: ▼35.01ms] Passed 4 tests

Server-side resources used by FooTable
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2046.84 ▲0.76
Dashboard /wp-admin3.29 ▼0.0225.59 ▼25.22
Posts /wp-admin/edit.php3.29 ▼0.0724.49 ▼25.40
Add New Post /wp-admin/post-new.php3.29 ▼2.6025.10 ▼80.32
Media Library /wp-admin/upload.php3.29 ▲0.0626.79 ▼9.10
FooTable /wp-admin/options-general.php?page=footable3.2925.30

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 30 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-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by FooTable
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲18313.45 ▼0.9210.95 ▲9.1341.74 ▼2.12
Dashboard /wp-admin2,209 ▲385.64 ▼0.0393.79 ▼5.1142.81 ▼0.65
Posts /wp-admin/edit.php2,114 ▲142.04 ▲0.0536.24 ▼13.9334.95 ▼1.09
Add New Post /wp-admin/post-new.php1,548 ▲2222.87 ▼0.37668.18 ▲2.3936.71 ▼23.63
Media Library /wp-admin/upload.php1,414 ▲174.24 ▲0.02111.68 ▲4.8747.56 ▼1.92
FooTable /wp-admin/options-general.php?page=footable1,4682.1638.3536.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/footable/includes/Foo_Plugin_Base.php+657
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=footable
    • > Deprecated in wp-content/plugins/footable/includes/Foo_Plugin_Base.php+657
    Function create_function() is deprecated

SRP 0% 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
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/footable/includes/demo.php
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/footable/views/settings.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/footable/class.footable.php:15
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/footable/views/settings.php on line 9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/footable/views/settings.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/footable/views/settings.php:17
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/footable/views/settings.php on line 9

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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: responsive, jquery, tables

footable/footable.php Passed 13 tests

Analyzing the main PHP file in "FooTable" version 0.3.1
63 characters long description:
FooTable makes your HTML tables look awesome on smaller devices

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,651 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP73182281,160
CSS54811286
SVG10078
JavaScript6191475
Markdown131052

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity18.71
▷ Minimum class complexity3.00
▷ Maximum class complexity48.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
Methods72
▷ Static methods11.39%
▷ Public methods7198.61%
▷ Protected methods00.00%
▷ Private methods11.39%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants17.14%
▷ Class constants1392.86%
▷ Public constants13100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/active.png0.42KB0.41KB▼ 3.00%
css/img/device-sprite.png1.28KB1.21KB▼ 5.12%
includes/images/disabled.png0.44KB0.41KB▼ 6.03%
includes/images/suspended.png0.43KB0.41KB▼ 4.33%