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.75MB] [CPU: ▼169.70ms] Passed 4 tests
An overview of server-side resources used by CP Phone Link
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.21 | 39.75 ▲14.40 |
Dashboard /wp-admin | 2.90 ▼0.16 | 22.59 ▼22.91 |
Posts /wp-admin/edit.php | 2.90 ▼0.21 | 26.88 ▼16.81 |
Add New Post /wp-admin/post-new.php | 2.90 ▼2.54 | 26.48 ▼629.36 |
Media Library /wp-admin/upload.php | 2.90 ▼0.10 | 26.06 ▼9.72 |
CP Phone Link /wp-admin/options-general.php?page=ecpm_cpl_settings_page | 2.90 | 26.51 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 1 new option
New WordPress options |
---|
ecpm_cpl_settings |
Browser metrics Passed 4 tests
CP Phone Link: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,792 ▲196 | 16.71 ▲1.38 | 12.33 ▲3.57 | 48.16 ▼3.46 |
Dashboard /wp-admin | 2,978 ▲41 | 6.09 ▲0.16 | 142.49 ▼13.29 | 125.40 ▼1.48 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.01 | 69.59 ▲0.34 | 90.05 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.77 ▲0.01 | 391.46 ▲4.45 | 116.67 ▲3.86 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.00 ▼0.02 | 151.07 ▼13.41 | 126.73 ▼1.23 |
CP Phone Link /wp-admin/options-general.php?page=ecpm_cpl_settings_page | 2,035 | 2.06 | 55.60 | 110.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/cp-phone-link/ecpm-cpl.php+32
Use of undefined constant APP_TD - assumed 'APP_TD' (this will throw an Error in a future version of PHP)
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=ecpm_cpl_settings_page
- > Warning in wp-content/plugins/cp-phone-link/ecpm-cpl.php+32
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_cpl_settings_page
- > Notice in wp-includes/wp-db.php+648
Undefined property: wpdb::$cp_ad_fields
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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cp-phone-link/ecpm-cpl.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/cp-phone-link/image_sidebar.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=ecpm_cpl_settings_page
- > Network (severe)
wp-content/plugins/cp-phone-link/images/easy-qr-codes.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=ecpm_cpl_settings_page
- > Network (severe)
wp-content/plugins/cp-phone-link/images/post-private-messages.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 86% 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
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Plugin's settings), #2 (Ad details view - Icon on the left), #3 (Ad details view - Icon on the right)
cp-phone-link/ecpm-cpl.php 77% from 13 tests
The entry point to "CP Phone Link" version 1.3.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cp-phone-link.php" instead of "ecpm-cpl.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
- Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected585 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 91 | 14 | 484 |
PO File | 1 | 36 | 38 | 95 |
JavaScript | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 14 | |
▷ Named functions | 14 | 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
PNG files should be compressed to save space and minimize bandwidth usage
40 compressed PNG files occupy 0.43MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/phone-icon-2.png | 0.56KB | 0.75KB | 0.00% |
images/phone-icon-1.png | 0.52KB | 0.71KB | 0.00% |
images/phone-icon-11.png | 0.57KB | 0.96KB | 0.00% |
screenshot-2.png | 16.97KB | 10.04KB | ▼ 40.87% |
images/phone-icon-8.png | 0.58KB | 0.70KB | 0.00% |