Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/advanced-custom-columns/ACC_columns.php+114
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.85MB] [CPU: ▼61.56ms] Passed 4 tests
A check of server-side resources used by Advanced Custom Columns
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 5.92 ▼40.61 |
Dashboard /wp-admin | 2.16 ▼1.18 | 7.74 ▼58.01 |
Posts /wp-admin/edit.php | 2.16 ▼1.19 | 5.98 ▼47.15 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.72 | 7.26 ▼100.48 |
Media Library /wp-admin/upload.php | 2.16 ▼1.06 | 7.72 ▼31.18 |
Custom columns /wp-admin/options-general.php?page=custom_admin_columns_for_sorting_and_filtering | 2.17 | 7.23 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Custom Columns
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.34 ▼0.29 | 1.85 ▼0.22 | 43.64 ▲0.22 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▲0.08 | 85.55 ▼5.14 | 39.05 ▼1.65 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.97 ▼0.06 | 36.15 ▼0.97 | 35.30 ▲2.28 |
Add New Post /wp-admin/post-new.php | 1,529 ▼0 | 23.47 ▼0.08 | 703.92 ▲65.87 | 56.02 ▲7.72 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.23 ▼0.06 | 109.19 ▲6.76 | 49.13 ▲1.20 |
Custom columns /wp-admin/options-general.php?page=custom_admin_columns_for_sorting_and_filtering | 848 | 1.99 | 21.71 | 26.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/advanced-custom-columns/ACC_columns.php+114
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=custom_admin_columns_for_sorting_and_filtering
- > Notice in wp-content/plugins/advanced-custom-columns/ACC_columns.php+119
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/advanced-custom-columns/ACC_settings.php:117
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/advanced-custom-columns/advanced-custom-columns.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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
4 plugin tags: custom post type, custom admin columns, sorting, filtering
advanced-custom-columns/advanced-custom-columns.php Passed 13 tests
This is the main PHP file of "Advanced Custom Columns" version 1.1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
99 characters long description:
Add custom admin columns to post types to provide sorting and filtering through these extra columns
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin311 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 90 | 94 | 311 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 25.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.23 |
▷ 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 | 22 | |
▷ Static methods | 9 | 40.91% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 57.59KB | 23.56KB | ▼ 59.09% |
assets/icon-256x256.png | 9.82KB | 3.48KB | ▼ 64.54% |
assets/screenshot-1.png | 22.94KB | 10.64KB | ▼ 53.63% |