84% acf-tablepress

Code Review | ACF: TablePress

WordPress plugin ACF: TablePress scored84%from 54 tests.

About plugin

  • Plugin page: acf-tablepress
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.2
  • WordPress version: 6.3.1
  • First release: May 4, 2015
  • Latest release: Jul 14, 2016
  • Number of updates: 35
  • Update frequency: every 12.5 days
  • Top authors: tylerdigital (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /21,383 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.58ms] Passed 4 tests

An overview of server-side resources used by ACF: TablePress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.80 ▼6.34
Dashboard /wp-admin3.31 ▲0.0048.12 ▼6.80
Posts /wp-admin/edit.php3.36 ▲0.0051.26 ▲2.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.56 ▼7.53
Media Library /wp-admin/upload.php3.23 ▲0.0039.41 ▼1.63

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for ACF: TablePress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.33 ▼0.971.83 ▼0.0141.05 ▼4.62
Dashboard /wp-admin2,206 ▲184.85 ▲0.01102.45 ▼17.3341.02 ▼4.01
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0339.44 ▲2.3935.02 ▼0.21
Add New Post /wp-admin/post-new.php1,514 ▼817.50 ▼5.74688.41 ▼16.6352.28 ▼6.94
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0394.58 ▼19.2041.20 ▼5.32

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-tablepress/tablepress-v5.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/acf-tablepress/class-tgm-plugin-activation.php:1899
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-tablepress/tablepress-v4.php:2

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: select table, tables, advanced custom fields, embed table, table...

acf-tablepress/acf-tablepress.php Passed 13 tests

Analyzing the main PHP file in "ACF: TablePress" version 1.3.2
49 characters long description:
ACF field to select one or many TablePress tables

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,232 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP55121,4881,924
PO File295102308

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity36.67
▷ Minimum class complexity1.00
▷ Maximum class complexity178.00
Average method complexity4.15
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods102
▷ Static methods54.90%
▷ Public methods8280.39%
▷ Protected methods2019.61%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
There were not PNG files found in your plugin