Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼296.05ms] Passed 4 tests
An overview of server-side resources used by Advanced Custom Fields: Table Field
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 56.80 ▲2.95 |
Dashboard /wp-admin | 3.42 ▲0.01 | 33.45 ▼0.81 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 39.45 ▲0.89 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.08 | 96.78 ▼1,180.12 |
Media Library /wp-admin/upload.php | 3.30 ▼0.00 | 24.87 ▼4.14 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Custom Fields: Table Field
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 15.93 ▲0.23 | 5.97 ▼0.44 | 2.45 ▼0.21 |
Dashboard /wp-admin | 2,895 ▲40 | 6.15 ▲0.01 | 115.89 ▼24.16 | 156.36 ▼0.32 |
Posts /wp-admin/edit.php | 2,694 ▲6 | 3.24 ▼0.00 | 62.52 ▼1.66 | 140.03 ▼2.66 |
Add New Post /wp-admin/post-new.php | 1,698 ▲37 | 22.62 ▲6.19 | 405.35 ▼10.60 | 156.35 ▲2.60 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.50 ▼0.06 | 160.33 ▲21.33 | 197.88 ▲7.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-custom-fields-table-field/acf-table.php:22
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields-table-field/acf-table-v5.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields-table-field/acf-table-v4.php:3
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: A description for screenshot #3 is missing in advanced-custom-fields-table-field/assets to your readme.txt
advanced-custom-fields-table-field/acf-table.php 85% from 13 tests
Analyzing the main PHP file in "Advanced Custom Fields: Table Field" version 1.3.14
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-custom-fields-table-field.php" instead of "acf-table.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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 plugin2,387 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 938 | 145 | 1,519 |
PHP | 3 | 334 | 500 | 479 |
CSS | 1 | 48 | 34 | 255 |
PO File | 3 | 48 | 85 | 134 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 42.50 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 7.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin