94% acf-tablepress

Code Review | ACF: TablePress

WordPress plugin ACF: TablePress scored 94% 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: 5.8.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 / 18,096 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by ACF: TablePress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0025.01 ▼0.74
Dashboard /wp-admin3.06 ▼0.0041.54 ▼3.92
Posts /wp-admin/edit.php3.11 ▲0.0039.66 ▲6.47
Add New Post /wp-admin/post-new.php5.42 ▼0.0273.51 ▼710.28
Media Library /wp-admin/upload.php3.00 ▲0.0025.34 ▼1.39

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

ACF: TablePress: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲6515.68 ▲0.036.10 ▼1.5874.81 ▲0.34
Dashboard /wp-admin2,932 ▲336.13 ▼0.08157.32 ▲30.49235.40 ▲72.49
Posts /wp-admin/edit.php2,737 ▼63.22 ▼0.0174.91 ▲5.63153.90 ▲11.21
Add New Post /wp-admin/post-new.php3,735 ▼8018.87 ▼0.42458.89 ▲1.70163.41 ▲7.39
Media Library /wp-admin/upload.php1,752 ▼05.55 ▲0.00152.55 ▲14.46190.02 ▲1.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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-v5.php:2
    • > 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 | This is a smoke test targeting browser errors/issues
There were no browser issues found

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
7 plugin tags: embed table, tables, advanced custom fields, tablepress, select table...

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

The entry point to "ACF: TablePress" version 1.3.2 is a PHP file that has certain tags in its header comment area
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 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,232 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP55121,4881,924
PO File295102308

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin