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.07MB] [CPU: ▼5.72ms] Passed 4 tests
A check of server-side resources used by Smartarget Information Message
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.75 ▼11.33 |
Dashboard /wp-admin | 3.37 ▲0.07 | 51.04 ▼7.43 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 51.36 ▲1.53 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 91.33 ▼5.65 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 42.17 ▲6.71 |
Smartarget Information Message /wp-admin/options-general.php?page=smartarget_flash_cards | 3.26 | 34.67 |
Server storage [IO: ▲3.84MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Smartarget Information Message
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲160 | 20.92 ▲6.52 | 9.67 ▲7.57 | 38.29 ▼5.48 |
Dashboard /wp-admin | 2,205 ▲28 | 10.63 ▲5.02 | 175.14 ▲74.70 | 41.70 ▼7.19 |
Posts /wp-admin/edit.php | 2,122 ▲25 | 7.24 ▲5.21 | 113.90 ▲77.47 | 33.14 ▼3.26 |
Add New Post /wp-admin/post-new.php | 1,694 ▲168 | 27.57 ▲4.54 | 737.10 ▲85.07 | 64.12 ▲15.01 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 9.51 ▲5.18 | 195.61 ▲93.52 | 48.16 ▲2.47 |
Smartarget Information Message /wp-admin/options-general.php?page=smartarget_flash_cards | 1,521 | 8.95 | 163.11 | 93.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/smartarget-information-message/public/partials/smartarget-flash-cards-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/smartarget-information-message/admin/partials/smartarget-flash-cards-admin-display.php:20
- > 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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: promotion, promo, popup, information, banner...
smartarget-information-message/smartarget-flash-cards.php 85% from 13 tests
The principal PHP file in "Smartarget Information Message" v. 1.2 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("smartarget-information-message.php" instead of "smartarget-flash-cards.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin868 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 5 | 4,369 | 642 |
PHP | 12 | 130 | 522 | 225 |
CSS | 2 | 0 | 4 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 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
No PNG images were found in this plugin