Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼3.86ms] Passed 4 tests
This is a short check of server-side resources used by Popover Windows
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 40.88 ▼9.09 |
Dashboard /wp-admin | 3.59 ▲0.29 | 48.64 ▲0.87 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 48.99 ▼2.53 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 98.19 ▼4.70 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 37.65 ▲3.63 |
/wp-admin/admin.php?page=preview_popover_window | 3.46 | 31.00 |
Popover Windows /wp-admin/admin.php?page=pop_top | 3.48 | 32.03 |
My Themes /wp-admin/admin.php?page=popover_themes | 3.48 | 34.03 |
Daily Stats /wp-admin/admin.php?page=pop_daily_stat | 3.46 | 32.56 |
Add New Popover Window /wp-admin/admin.php?page=new_popover_window | 3.48 | 34.39 |
/wp-admin/admin.php?page=new_popover_theme | 3.48 | 32.71 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 82 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_daily_stats |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
pop_theme_default |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Popover Windows
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,895 ▲160 | 13.55 ▼0.80 | 8.32 ▲6.19 | 51.97 ▲6.13 |
Dashboard /wp-admin | 2,240 ▲52 | 4.91 ▲0.02 | 96.96 ▼5.41 | 73.24 ▲30.45 |
Posts /wp-admin/edit.php | 2,123 ▲37 | 1.99 ▼0.06 | 34.79 ▼5.08 | 32.29 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,695 ▲176 | 22.58 ▼0.10 | 611.30 ▼11.25 | 43.44 ▼14.43 |
Media Library /wp-admin/upload.php | 1,425 ▲40 | 4.21 ▼0.06 | 112.37 ▲13.17 | 63.99 ▲21.71 |
/wp-admin/admin.php?page=preview_popover_window | 868 | 2.14 | 30.07 | 26.38 |
Popover Windows /wp-admin/admin.php?page=pop_top | 858 | 2.01 | 24.02 | 30.63 |
My Themes /wp-admin/admin.php?page=popover_themes | 882 | 2.01 | 24.43 | 30.22 |
Daily Stats /wp-admin/admin.php?page=pop_daily_stat | 855 | 2.02 | 23.87 | 28.25 |
Add New Popover Window /wp-admin/admin.php?page=new_popover_window | 1,280 | 2.33 | 41.23 | 53.47 |
/wp-admin/admin.php?page=new_popover_theme | 1,750 | 2.32 | 36.89 | 36.15 |
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
It is recommended to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_daily_stats
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- pop_theme_default
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 41 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pop_daily_stat
- > Notice in wp-content/plugins/popover-windows/popoveroptions.php+472
Trying to access array offset on value of type bool
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=preview_popover_window
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=preview_popover_window 153:5 Uncaught SyntaxError: Unexpected token '='
- > GET request to /wp-admin/admin.php?page=preview_popover_window
- > Network (severe)
img/closebig.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=preview_popover_window
- > Network (severe)
wp-admin/loading.html - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pop_daily_stat
- > Network (severe)
wp-content/plugins/popover-windows/img/wp_pop_buy_em.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=popover_themes
- > Network (severe)
wp-content/plugins/popover-windows/img/button.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: pop up ads, popover banners, popover windows, popover window, popup windows...
popover-windows/popoverwindow.php 92% from 13 tests
This is the main PHP file of "Popover Windows" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("popover-windows.php" instead of "popoverwindow.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected7,586 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 465 | 110 | 3,297 |
PO File | 9 | 3,197 | 6,025 | 3,089 |
PHP | 2 | 193 | 30 | 1,133 |
HTML | 2 | 39 | 0 | 47 |
CSS | 1 | 12 | 2 | 20 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
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 | 18 | |
▷ Named functions | 18 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
48 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/closeblack.png | 1.78KB | 1.54KB | ▼ 13.39% |
img/email.png | 0.64KB | 0.75KB | 0.00% |
img/clipboard.png | 0.61KB | 0.67KB | 0.00% |
img/browse.png | 0.60KB | 0.60KB | 0.00% |
img/money.png | 0.72KB | 0.73KB | 0.00% |