Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.58ms] Passed 4 tests
Analyzing server-side resources used by Byteplant Phone Validator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.04 ▼3.31 |
Dashboard /wp-admin | 3.34 ▼0.01 | 45.39 ▼14.14 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.14 ▲1.73 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 90.09 ▼18.60 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.54 ▲4.63 |
Byteplant Phone Validator /wp-admin/options-general.php?page=byteplant_phone_validator | 3.21 | 30.84 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Byteplant Phone Validator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.59 ▼1.03 | 1.60 ▼0.03 | 39.72 ▼4.50 |
Dashboard /wp-admin | 2,213 ▲22 | 5.87 ▼0.03 | 101.53 ▼1.04 | 40.19 ▼4.70 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.13 ▲0.09 | 40.75 ▼5.04 | 37.10 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 18.30 ▼4.87 | 652.03 ▲30.93 | 49.96 ▼3.69 |
Media Library /wp-admin/upload.php | 1,386 ▲4 | 4.14 ▼0.04 | 103.20 ▲0.58 | 42.74 ▼2.96 |
Byteplant Phone Validator /wp-admin/options-general.php?page=byteplant_phone_validator | 2,171 | 2.06 | 23.41 | 29.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- 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 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=byteplant_phone_validator
- > Notice in wp-content/plugins/byteplant-phone-validator/src/class-bppv-admin.php+328
Undefined variable: key
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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/byteplant-phone-validator/plugin.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: ninja forms, woocommerce, contact form 7, wp forms, phone validation...
byteplant-phone-validator/plugin.php 85% from 13 tests
The main PHP script in "Byteplant Phone Validator" version 4.1 is automatically included on every request by WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 197 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("byteplant-phone-validator.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,855 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 295 | 836 | 1,067 |
PO File | 1 | 275 | 276 | 588 |
JavaScript | 4 | 26 | 0 | 182 |
CSS | 2 | 3 | 0 | 18 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.08 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 6 | 6.38% |
▷ Public methods | 89 | 94.68% |
▷ Protected methods | 3 | 3.19% |
▷ Private methods | 2 | 2.13% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There are no PNG files in this plugin