Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼2.46ms] Passed 4 tests
A check of server-side resources used by Lexicata
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 40.40 ▼3.71 |
Dashboard /wp-admin | 3.57 ▲0.26 | 46.92 ▼1.25 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 53.33 ▲6.60 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 89.05 ▼7.26 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 37.64 ▲2.37 |
Lexicata Settings /wp-admin/options-general.php?page=lexicata_form_settings | 3.50 | 42.37 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
lexicata_form_version |
Browser metrics Passed 4 tests
A check of browser resources used by Lexicata
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲122 | 14.00 ▼0.27 | 5.20 ▲3.22 | 36.70 ▼5.32 |
Dashboard /wp-admin | 2,214 ▲29 | 4.83 ▼1.03 | 97.33 ▼3.32 | 37.46 ▼6.76 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.04 ▲0.04 | 41.84 ▲2.44 | 34.40 ▼3.06 |
Add New Post /wp-admin/post-new.php | 1,521 ▲7 | 23.32 ▲5.60 | 680.31 ▲51.95 | 63.66 ▼2.18 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.17 ▼0.04 | 96.48 ▼3.78 | 43.43 ▼0.55 |
Lexicata Settings /wp-admin/options-general.php?page=lexicata_form_settings | 1,114 | 3.09 | 49.95 | 68.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- lexicata_form_version
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/lexicata/includes/templates/form.php:2
- > 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 issues were found
Optimizations
Plugin configuration 90% 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
9 plugin tags: law firm, lead tracking, contact form, plugin, contact...
lexicata/lexicata-form.php 77% from 13 tests
"Lexicata" version 1.0.16's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Requires at least: The required version number did not match the one declared in readme.txt ("3.9" instead of "4.0")
- Main file name: Name the main plugin file the same as the plugin slug ("lexicata.php" instead of "lexicata-form.php")
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
No dangerous file extensions were detected1,154 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 280 | 614 | 1,098 |
JavaScript | 5 | 16 | 6 | 56 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 29.60 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 4 | 7.69% |
▷ Public methods | 45 | 86.54% |
▷ Protected methods | 3 | 5.77% |
▷ Private methods | 4 | 7.69% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/templates/images/lexicata-logo-169x75.png | 6.66KB | 2.75KB | ▼ 58.73% |
includes/templates/images/lexicata-logo-200x100.png | 6.99KB | 2.69KB | ▼ 61.50% |