Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.60MB] [CPU: ▼15.46ms] Passed 4 tests
An overview of server-side resources used by Popup Lightbox
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.07 | 49.01 ▲5.54 |
Dashboard /wp-admin | 3.44 ▲0.09 | 52.76 ▲2.25 |
Posts /wp-admin/edit.php | 3.56 ▲0.15 | 49.74 ▼4.06 |
Add New Post /wp-admin/post-new.php | 3.29 ▼2.64 | 44.14 ▼57.24 |
Media Library /wp-admin/upload.php | 3.36 ▲0.09 | 38.34 ▼2.79 |
Todas Popups /wp-admin/edit.php?post_type=popup-lightbox | 3.41 | 36.94 |
Sobre /wp-admin/edit.php?post_type=popup-lightbox&page=popup-lightbox-about | 3.33 | 33.35 |
Adicionar Nova /wp-admin/post-new.php?post_type=popup-lightbox | 3.29 | 37.93 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Popup Lightbox
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲43 | 14.58 ▲0.23 | 2.62 ▲0.53 | 44.25 ▼1.27 |
Dashboard /wp-admin | 2,214 ▲44 | 5.59 ▼0.07 | 96.49 ▼2.24 | 80.15 ▲34.48 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.00 ▼0.01 | 34.31 ▼2.29 | 33.08 ▼5.89 |
Add New Post /wp-admin/post-new.php | 1,572 ▲44 | 23.32 ▲0.14 | 696.00 ▲14.33 | 80.73 ▲16.21 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.14 ▲0.02 | 98.29 ▼15.94 | 62.56 ▲12.96 |
Todas Popups /wp-admin/edit.php?post_type=popup-lightbox | 1,111 | 1.92 | 34.23 | 32.93 |
Sobre /wp-admin/edit.php?post_type=popup-lightbox&page=popup-lightbox-about | 805 | 1.99 | 27.57 | 26.40 |
Adicionar Nova /wp-admin/post-new.php?post_type=popup-lightbox | 1,897 | 4.01 | 71.28 | 84.33 |
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_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 36 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=popup-lightbox
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 36 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=popup-lightbox
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=popup-lightbox&page=popup-lightbox-about
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
- > GET request to /wp-admin/post-new.php?post_type=popup-lightbox
- > Notice in wp-content/plugins/popup-lightbox/popup-lightbox.php+186
Undefined index: pl
- > GET request to /wp-admin/post-new.php?post_type=popup-lightbox
- > Notice in wp-content/plugins/popup-lightbox/popup-lightbox.php+187
Undefined index: one-time
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=popup-lightbox
- > Notice in wp-content/plugins/popup-lightbox/popup-lightbox.php+195
Undefined index: type
- > GET request to /wp-admin/post-new.php?post_type=popup-lightbox
- > Notice in wp-content/plugins/popup-lightbox/popup-lightbox.php+347
Undefined index: popup_expirar
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=popup-lightbox
- > Notice in wp-content/plugins/popup-lightbox/popup-lightbox.php+324
Trying to access array offset on value of type null
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=popup-lightbox
- > Notice in wp-content/plugins/popup-lightbox/popup-lightbox.php+324
Undefined index: popup_video
- > GET request to /wp-admin/post-new.php?post_type=popup-lightbox
- > Notice in wp-content/plugins/popup-lightbox/popup-lightbox.php+279
Undefined index: popup_one-time
- > GET request to /wp-admin/post-new.php?post_type=popup-lightbox
- > Notice in wp-content/plugins/popup-lightbox/popup-lightbox.php+284
Undefined index: popup_freguencia
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=popup-lightbox
- > Notice in wp-content/plugins/popup-lightbox/popup-lightbox.php+308
Undefined index: popup_image
- > GET request to /wp-admin/post-new.php?post_type=popup-lightbox
- > Notice in wp-content/plugins/popup-lightbox/popup-lightbox.php+312
Undefined index: popup_image_link
SRP 50% 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 take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/popup-lightbox/includes/meta-box.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/popup-lightbox/popup-lightbox.php:22
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=popup-lightbox
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/post-new.php?post_type=popup-lightbox:475:32)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=popup-lightbox
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5 in popup-lightbox/assets to your readme.txt
popup-lightbox/popup-lightbox.php 85% from 13 tests
The main PHP script in "Popup Lightbox" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.5" instead of "3.5.1")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 183 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin2,588 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 295 | 244 | 1,794 |
PHP | 2 | 89 | 15 | 436 |
PO File | 3 | 135 | 138 | 315 |
CSS | 2 | 4 | 9 | 43 |
PHP code Passed 2 tests
An overview 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.41 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 18 | 100.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/controls.png | 1.59KB | 1.67KB | 0.00% |