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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.79ms] Passed 4 tests
An overview of server-side resources used by Popup with fancybox
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.43 ▲0.50 |
Dashboard /wp-admin | 3.35 ▲0.05 | 47.97 ▼1.40 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 45.13 ▼4.33 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.78 ▼7.61 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.92 ▼5.82 |
Popup with fancybox /wp-admin/options-general.php?page=popup-with-fancybox | 3.29 | 29.84 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_popupwith_fancybox |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Popupwfb_session |
Popupwfb_group |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Popup with fancybox
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,079 ▲318 | 13.47 ▼1.09 | 13.64 ▲12.04 | 44.54 ▼0.18 |
Dashboard /wp-admin | 2,202 ▲22 | 5.60 ▼0.07 | 93.94 ▼3.77 | 41.97 ▼1.78 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.19 | 37.51 ▲0.30 | 31.25 ▼4.31 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 23.13 ▲0.02 | 657.14 ▼41.11 | 54.99 ▼2.22 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.21 ▼0.00 | 95.49 ▼12.30 | 41.89 ▼2.27 |
Popup with fancybox /wp-admin/options-general.php?page=popup-with-fancybox | 919 | 2.00 | 22.61 | 25.41 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
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
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/popup-with-fancybox/pages/content-management-add.php
- > /wp-content/plugins/popup-with-fancybox/pages/content-management-edit.php
- > /wp-content/plugins/popup-with-fancybox/pages/content-setting.php
- > /wp-content/plugins/popup-with-fancybox/pages/content-management-show.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/popup-with-fancybox/popup-with-fancybox.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/popup-with-fancybox/popup-with-fancybox.php:21
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
3 plugin tags: fancybox, plugin, popup
popup-with-fancybox/popup-with-fancybox.php 92% from 13 tests
The entry point to "Popup with fancybox" version 3.6 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 271 characters long)
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
Good job! No executable or dangerous file extensions detected3,222 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 455 | 135 | 1,520 |
PHP | 6 | 100 | 36 | 885 |
PO File | 4 | 236 | 394 | 568 |
CSS | 1 | 42 | 18 | 249 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/fancybox_sprite.png | 1.33KB | 1.42KB | 0.00% |
inc/fancybox_overlay.png | 0.98KB | 0.09KB | ▼ 90.43% |
inc/fancybox_sprite@2x.png | 6.40KB | 5.76KB | ▼ 9.96% |