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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.86ms] Passed 4 tests
This is a short check of server-side resources used by LotekMedia Popup Form
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.01 ▼1.63 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.50 ▼2.11 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.38 ▲0.73 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.64 ▼3.49 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.73 ▼0.21 |
LTM Popup Form /wp-admin/options-general.php?page=__ltm-popup-admin-page__ | 3.28 | 30.92 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for LotekMedia Popup Form
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲143 | 13.57 ▼0.74 | 5.50 ▲3.45 | 41.86 ▼1.83 |
Dashboard /wp-admin | 2,213 ▲25 | 4.83 ▼1.00 | 102.22 ▼3.98 | 39.05 ▼3.56 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.03 ▲0.04 | 37.44 ▼2.64 | 31.02 ▼5.38 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.41 ▲0.17 | 668.72 ▼9.68 | 53.42 ▲0.84 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.19 ▼0.03 | 95.11 ▼10.63 | 41.69 ▼4.51 |
LTM Popup Form /wp-admin/options-general.php?page=__ltm-popup-admin-page__ | 1,565 | 2.81 | 65.91 | 27.23 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 10 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=__ltm-popup-admin-page__
- > Notice in wp-content/plugins/ltm-popup-form/ltm-popup-setting.php+89
Trying to access array offset on value of type bool
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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ltm-popup-form/ltm-popup-form.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ltm-popup-form/ltm-popup-setting.php:6
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: popup, form
ltm-popup-form/ltm-popup-form.php Passed 13 tests
The primary PHP file in "LotekMedia Popup Form" version 1.0.6 is used by WordPress to initiate all plugin functionality
44 characters long description:
Create and add popup forms for your website.
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
Success! There were no dangerous files found in this plugin670 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 44 | 24 | 227 |
PO File | 2 | 73 | 73 | 183 |
CSS | 1 | 13 | 17 | 143 |
JavaScript | 3 | 21 | 1 | 117 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 8 | |
▷ Named functions | 8 | 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
No PNG files were detected