Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼141.60ms] Passed 4 tests
This is a short check of server-side resources used by Popup4Phone
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.13 | 59.43 ▲17.51 |
Dashboard /wp-admin | 3.19 ▲0.13 | 51.21 ▲4.56 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 49.45 ▲1.34 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 96.85 ▼573.36 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 35.81 ▲1.05 |
Integrations /wp-admin/admin.php?page=popup4phone-integrations | 3.33 | 34.70 |
Leads /wp-admin/admin.php?page=popup4phone | 3.07 | 41.60 |
Help /wp-admin/admin.php?page=popup4phone-help | 3.09 | 26.95 |
Settings /wp-admin/admin.php?page=popup4phone-settings | 3.10 | 32.62 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 41 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_popup4phone_leads |
New WordPress options |
---|
popup4phone_version |
Browser metrics Passed 4 tests
Checking browser requirements for Popup4Phone
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,110 ▲538 | 16.61 ▲1.03 | 27.91 ▲16.90 | 54.98 ▲5.55 |
Dashboard /wp-admin | 3,016 ▲82 | 5.92 ▼0.04 | 151.90 ▼0.14 | 113.07 ▼4.85 |
Posts /wp-admin/edit.php | 2,785 ▲46 | 2.71 ▲0.00 | 71.27 ▼0.19 | 98.99 ▲4.72 |
Add New Post /wp-admin/post-new.php | 1,624 ▲43 | 18.78 ▲1.09 | 399.64 ▼12.78 | 112.98 ▼10.14 |
Media Library /wp-admin/upload.php | 1,856 ▲49 | 5.05 ▲0.02 | 161.26 ▼5.56 | 123.83 ▼1.40 |
Integrations /wp-admin/admin.php?page=popup4phone-integrations | 1,060 | 2.08 | 58.91 | 71.16 |
Leads /wp-admin/admin.php?page=popup4phone | 1,378 | 2.13 | 63.97 | 74.58 |
Help /wp-admin/admin.php?page=popup4phone-help | 1,237 | 2.09 | 62.60 | 105.67 |
Settings /wp-admin/admin.php?page=popup4phone-settings | 1,204 | 2.09 | 61.80 | 106.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_popup4phone_leads
- Zombie WordPress options detected upon uninstall: 1 option
- popup4phone_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/popup4phone/templates/ga.tpl.php
- > /wp-content/plugins/popup4phone/templates/popover-button-icon.php
- > /wp-content/plugins/popup4phone/templates/admin/web-stat.tpl.php
- 17× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: ws_flds in wp-content/plugins/popup4phone/templates/admin/web-stat.tpl.php on line 13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/popup4phone/templates/_form-general.tpl.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/popup4phone/templates/admin/help.tpl.php:3
- > PHP Notice
Undefined variable: ga_id in wp-content/plugins/popup4phone/templates/ga.tpl.php on line 7
- > PHP Notice
Undefined variable: title in wp-content/plugins/popup4phone/templates/admin/web-stat.tpl.php on line 10
- > PHP Notice
Undefined variable: title in wp-content/plugins/popup4phone/templates/admin/web-stat.tpl.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/popup4phone/popup4phone.php:23
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/popup4phone/templates/admin/admin_header.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/popup4phone/templates/form-inline.tpl.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/popup4phone/templates/form-popup.tpl.php:14
- > PHP Notice
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 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
popup4phone/popup4phone.php Passed 13 tests
"Popup4Phone" version 1.3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
60 characters long description:
Popover/popup dialog for collecting the user`s phone numbers
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin4,813 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 641 | 625 | 2,908 |
PO File | 4 | 420 | 441 | 1,005 |
CSS | 4 | 82 | 12 | 573 |
JavaScript | 1 | 72 | 14 | 327 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 20.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 4 | 28.57% |
▷ Concrete classes | 10 | 71.43% |
▷ Final classes | 0 | 0.00% |
Methods | 163 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 142 | 87.12% |
▷ Protected methods | 21 | 12.88% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 1 | 6.67% |
▷ Class constants | 14 | 93.33% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected