Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.83MB] [CPU: ▼36.68ms] Passed 4 tests
Server-side resources used by Custom Field Data Icons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 41.85 ▼3.96 |
Dashboard /wp-admin | 3.12 ▼0.22 | 27.36 ▼38.76 |
Posts /wp-admin/edit.php | 3.12 ▼0.23 | 28.80 ▼20.50 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.76 | 27.16 ▼74.34 |
Media Library /wp-admin/upload.php | 3.12 ▼0.11 | 24.41 ▼13.13 |
Custom Field Data Icons /wp-admin/options-general.php?page=ecpm_cfd_settings_page | 3.12 | 24.54 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
ecpm_cfd_settings |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Field Data Icons
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 14.48 ▲0.09 | 2.06 ▲0.22 | 44.54 ▼0.58 |
Dashboard /wp-admin | 2,215 ▲27 | 4.89 ▼0.02 | 102.18 ▼15.48 | 45.50 ▲0.58 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.00 ▼0.00 | 35.23 ▼3.53 | 36.10 ▲2.90 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.16 ▲0.08 | 688.76 ▲77.35 | 51.23 ▼22.71 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.28 ▲0.11 | 102.12 ▼7.46 | 47.95 ▼0.27 |
Custom Field Data Icons /wp-admin/options-general.php?page=ecpm_cfd_settings_page | 4,367 | 2.05 | 25.90 | 69.38 |
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
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/custom-field-data-icons/ecpm-cfd.php+50
Use of undefined constant APP_TD - assumed 'APP_TD' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=ecpm_cfd_settings_page
- > Warning in wp-content/plugins/custom-field-data-icons/ecpm-cfd.php+50
Use of undefined constant APP_TD - assumed 'APP_TD' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=ecpm_cfd_settings_page
- > Notice in wp-includes/class-wpdb.php+789
Undefined property: wpdb::$cp_ad_fields
- 55 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ecpm_cfd_settings_page
- > Notice in wp-content/plugins/custom-field-data-icons/ecpm-cfd.php+549
Undefined offset: 0
- 55 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ecpm_cfd_settings_page
- > Notice in wp-content/plugins/custom-field-data-icons/ecpm-cfd.php+549
Undefined offset: 1
- 55 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ecpm_cfd_settings_page
- > Notice in wp-content/plugins/custom-field-data-icons/ecpm-cfd.php+549
Undefined offset: 2
- 55 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ecpm_cfd_settings_page
- > Notice in wp-content/plugins/custom-field-data-icons/ecpm-cfd.php+549
Undefined offset: 3
- 55 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ecpm_cfd_settings_page
- > Notice in wp-content/plugins/custom-field-data-icons/ecpm-cfd.php+549
Undefined offset: 4
- 55 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ecpm_cfd_settings_page
- > Notice in wp-content/plugins/custom-field-data-icons/ecpm-cfd.php+549
Undefined offset: 5
- 55 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ecpm_cfd_settings_page
- > Notice in wp-content/plugins/custom-field-data-icons/ecpm-cfd.php+549
Undefined offset: 6
- 55 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ecpm_cfd_settings_page
- > Notice in wp-content/plugins/custom-field-data-icons/ecpm-cfd.php+549
Undefined offset: 7
- 55 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ecpm_cfd_settings_page
- > Notice in wp-content/plugins/custom-field-data-icons/ecpm-cfd.php+549
Undefined offset: 8
- 55 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ecpm_cfd_settings_page
- > Notice in wp-content/plugins/custom-field-data-icons/ecpm-cfd.php+549
Undefined offset: 9
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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/custom-field-data-icons/ecpm-cfd.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/custom-field-data-icons/plugin_inc_local.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/custom-field-data-icons/image_sidebar.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Plugin's settings), #2 (How it looks on a live site)
custom-field-data-icons/ecpm-cfd.php 77% from 13 tests
The entry point to "Custom Field Data Icons" version 1.8.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-field-data-icons.php" instead of "ecpm-cfd.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Please don't use more than 140 characters for the plugin description (currently 156 characters long)
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
Good job! No executable or dangerous file extensions detected841 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 97 | 13 | 583 |
CSS | 2 | 51 | 0 | 165 |
PO File | 1 | 32 | 34 | 90 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
28 compressed PNG files occupy 0.25MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/hide-ads-to-members.png | 4.42KB | 4.52KB | 0.00% |
images/remove-detached-images.png | 3.70KB | 3.91KB | 0.00% |
images/add-gateway-charges.png | 3.49KB | 3.66KB | 0.00% |
images/featured-post-expiration.png | 10.00KB | 10.33KB | 0.00% |
images/payment-gateway-icons-feat.png | 4.77KB | 4.97KB | 0.00% |