Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.43MB] [CPU: ▼3.38ms] Passed 4 tests
Server-side resources used by PopBot - Create targeted pop-ups to convert your visitors
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.22 ▲0.49 | 54.85 ▲11.84 |
Dashboard /wp-admin | 4.01 ▲0.38 | 53.36 ▼13.91 |
Posts /wp-admin/edit.php | 4.08 ▲0.40 | 58.66 ▲2.73 |
Add New Post /wp-admin/post-new.php | 6.94 ▲0.79 | 93.27 ▼8.03 |
Media Library /wp-admin/upload.php | 3.94 ▲0.45 | 43.13 ▲5.71 |
All PopBots /wp-admin/admin.php?page=popbot-archive | 3.84 | 39.50 |
Edit PopBot /wp-admin/admin.php?page=popbot-edit | 3.84 | 33.58 |
Create a PopBot /wp-admin/admin.php?page=popbot-templates | 3.84 | 37.76 |
Dashboard /wp-admin/admin.php?page=popbot-dashboard | 3.90 | 37.10 |
PopBot /wp-admin/admin.php?page=popbot-home | 3.73 | 29.40 |
Server storage [IO: ▲1.33MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 94 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
popbot_version |
popbot_require_rewrite_rules_flush |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for PopBot - Create targeted pop-ups to convert your visitors
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲80 | 14.79 ▲0.42 | 4.18 ▲2.01 | 38.34 ▼5.43 |
Dashboard /wp-admin | 2,261 ▲84 | 5.70 ▲0.06 | 88.33 ▼10.23 | 38.31 ▼0.42 |
Posts /wp-admin/edit.php | 2,170 ▲70 | 2.02 ▲0.01 | 40.78 ▲1.46 | 37.78 ▲0.84 |
Add New Post /wp-admin/post-new.php | 1,571 ▲45 | 23.16 ▲5.61 | 647.62 ▼39.59 | 50.63 ▼4.65 |
Media Library /wp-admin/upload.php | 1,460 ▲63 | 4.19 ▼0.05 | 105.89 ▲3.03 | 47.87 ▲6.83 |
All PopBots /wp-admin/admin.php?page=popbot-archive | 1,249 | 2.26 | 37.30 | 58.29 |
Edit PopBot /wp-admin/admin.php?page=popbot-edit | 729 | 1.70 | 11.50 | 26.22 |
Create a PopBot /wp-admin/admin.php?page=popbot-templates | 1,119 | 2.40 | 31.24 | 44.65 |
Dashboard /wp-admin/admin.php?page=popbot-dashboard | 1,420 | 2.35 | 40.84 | 45.70 |
PopBot /wp-admin/admin.php?page=popbot-home | 1,418 | 2.50 | 39.01 | 35.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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 does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=popbot-edit
- > Notice in wp-content/plugins/popbot/pages/edit.php+10
Undefined index: post
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/popbot/pages/templates.php
- 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function popbot\\add_action() in wp-content/plugins/popbot/src/class-admin-page.php:128
- > PHP Fatal error
Uncaught Error: Call to undefined function the_popbot_setting() in wp-content/plugins/popbot/templates/box/template.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function register_popbot_setting() in wp-content/plugins/popbot/templates/halfnhalf/settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function popbot\\esc_attr_e() in wp-content/plugins/popbot/pages/archive.php:12
- > PHP Notice
Undefined index: post in wp-content/plugins/popbot/pages/edit.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function the_popbot_setting() in wp-content/plugins/popbot/templates/floatingbar/template.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function popbot\\add_action() in wp-content/plugins/popbot/popbot.php:215
- > PHP Fatal error
Uncaught Error: Call to undefined function popbot\\get_post() in wp-content/plugins/popbot/pages/edit.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function popbot_setting() in wp-content/plugins/popbot/templates/chatbox/template.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function register_popbot_setting() in wp-content/plugins/popbot/templates/box/settings.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=popbot-home
- > Javascript (severe) in unknown
/wp-content/plugins/popbot/assets/scripts/dist/public.js?ver=1.0.3 0:4211 Uncaught TypeError: Cannot read properties of undefined (reading 'mobile')
- > GET request to /wp-admin/admin.php?page=popbot-templates
- > Network (severe)
wp-json/popbot/v1/templates?category=&per_page=20 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=popbot-templates
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=popbot-templates 0:0 Uncaught SyntaxError: Unexpected token '
- > GET request to /wp-admin/admin.php?page=popbot-dashboard
- > Network (severe)
wp-json/popbot/v1/analytics?context=count&date_start=2023-09-30T21%3A00%3A00.000Z&date_end=2023-10-14T12%3A14%3A34.386Z&event_type=shown - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=popbot-dashboard
- > Network (severe)
wp-json/popbot/v1/analytics?context=count&date_start=2023-10-14T12%3A14%3A34.386Z&date_end=2023-09-30T21%3A00%3A00.000Z&event_type=shown - Failed to load resource: the server responded with a status of 404 (Not Found)
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=popbot-home
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=popbot-dashboard 0:0 Uncaught SyntaxError: Unexpected token '
- > GET request to /wp-admin/admin.php?page=popbot-dashboard
- > Network (severe)
wp-json/popbot/v1/analytics?context=count&date_start=2023-09-30T21%3A00%3A00.000Z&date_end=2023-10-14T12%3A14%3A34.422Z&event_type=converted - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=popbot-dashboard
- > Network (severe)
wp-json/popbot/v1/analytics?context=count&date_start=2023-10-14T12%3A14%3A34.422Z&date_end=2023-09-30T21%3A00%3A00.000Z&event_type=converted - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=popbot-dashboard
- > Network (severe)
wp-json/popbot/v1/analytics?context=count&date_start=2023-09-30T21%3A00%3A00.000Z&date_end=2023-10-14T12%3A14%3A34.424Z&event_type=dismissed - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=popbot-dashboard
- > Network (severe)
wp-json/popbot/v1/analytics?context=count&date_start=2023-10-14T12%3A14%3A34.424Z&date_end=2023-09-30T21%3A00%3A00.000Z&event_type=dismissed - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=popbot-home
- > Network (severe)
wp-json/popbot/v1/analytics?context=count&date_start=2023-09-30T21%3A00%3A00.000Z&date_end=2023-10-14T12%3A14%3A36.194Z&event_type=shown - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=popbot-home
- > Network (severe)
wp-json/popbot/v1/analytics?context=count&date_start=2023-10-14T12%3A14%3A36.194Z&date_end=2023-09-30T21%3A00%3A00.000Z&event_type=shown - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=popbot-home
- > Network (severe)
wp-json/popbot/v1/analytics?context=count&date_start=2023-09-30T21%3A00%3A00.000Z&date_end=2023-10-14T12%3A14%3A36.230Z&event_type=converted - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=popbot-home
- > Network (severe)
wp-json/popbot/v1/analytics?context=count&date_start=2023-10-14T12%3A14%3A36.230Z&date_end=2023-09-30T21%3A00%3A00.000Z&event_type=converted - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=popbot-home
- > Network (severe)
wp-json/popbot/v1/analytics?context=count&date_start=2023-09-30T21%3A00%3A00.000Z&date_end=2023-10-14T12%3A14%3A36.231Z&event_type=dismissed - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=popbot-home
- > Network (severe)
wp-json/popbot/v1/analytics?context=count&date_start=2023-10-14T12%3A14%3A36.231Z&date_end=2023-09-30T21%3A00%3A00.000Z&event_type=dismissed - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
popbot/popbot.php 85% from 13 tests
The primary PHP file in "PopBot - Create targeted pop-ups to convert your visitors" version 1.0.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 147 characters long)
- Domain Path: The domain path folder was not found ("/languages")
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
Good job! No executable or dangerous file extensions detected10,534 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 39 | 1,534 | 139 | 6,654 |
PHP | 32 | 744 | 264 | 2,704 |
CSS | 7 | 183 | 5 | 1,123 |
JSON | 5 | 0 | 0 | 50 |
SVG | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
An short overview of 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.23 |
Average class complexity | 11.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 195 | |
▷ Static methods | 60 | 30.77% |
▷ Public methods | 178 | 91.28% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 8.72% |
Functions | 14 | |
▷ Named functions | 7 | 50.00% |
▷ Anonymous functions | 7 | 50.00% |
Constants | 17 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 17 | 100.00% |
▷ Public constants | 17 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.87MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/welcomemat/screenshot.png | 24.26KB | 3.96KB | ▼ 83.66% |
assets/images/bg.png | 708.65KB | 349.57KB | ▼ 50.67% |
templates/box/screenshot.png | 32.14KB | 6.25KB | ▼ 80.55% |
templates/chatbox/assistant.png | 13.13KB | 13.13KB | 0.01% |
templates/halfnhalf/screenshot.png | 58.44KB | 14.87KB | ▼ 74.55% |