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
Install script ran successfully
Server metrics [RAM: ▲0.39MB] [CPU: ▲11.90ms] Passed 4 tests
This is a short check of server-side resources used by Easy FancyBox
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 57.68 ▲18.92 |
Dashboard /wp-admin | 3.74 ▲0.39 | 70.21 ▲8.19 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 66.60 ▲16.94 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 99.92 ▲3.54 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 58.93 ▲28.45 |
Server storage [IO: ▲2.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 164 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
easy_fancybox_version |
widget_recent-posts |
Browser metrics Passed 4 tests
Easy FancyBox: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲177 | 13.52 ▼0.84 | 11.71 ▲10.08 | 42.87 ▲0.61 |
Dashboard /wp-admin | 2,189 ▲12 | 5.65 ▼0.02 | 91.96 ▼4.23 | 40.32 ▼4.38 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.01 ▼0.01 | 39.90 ▲3.82 | 35.37 ▼2.62 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 17.93 ▼5.17 | 620.96 ▼1.73 | 64.65 ▲9.98 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.22 ▲0.02 | 99.22 ▼4.36 | 44.48 ▲2.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/easy-fancybox/views/settings-field-media.php:1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/easy-fancybox/views/admin-page.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/easy-fancybox/inc/fancybox-2-options.php:8
- > PHP Warning
include(): Failed opening 'EASY_FANCYBOX_DIR/views/settings-section-intro.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/easy-fancybox/views/admin-page.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-fancybox/inc/fancybox-legacy.php:333
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-fancybox/inc/fancybox-classic.php:335
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/easy-fancybox/inc/fancybox-classic-options.php:13
- > PHP Warning
Use of undefined constant EASY_FANCYBOX_DIR - assumed 'EASY_FANCYBOX_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-fancybox/views/admin-page.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-fancybox/inc/fancybox-2.php:513
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/easy-fancybox/views/admin-page.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
easy-fancybox/easy-fancybox.php 85% from 13 tests
The entry point to "Easy FancyBox" version 1.9.5 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
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 detected29,928 lines of code in 92 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 40 | 5,475 | 2,633 | 18,140 |
PHP | 19 | 450 | 530 | 6,374 |
CSS | 23 | 517 | 118 | 3,101 |
HTML | 3 | 463 | 8 | 1,867 |
Markdown | 3 | 108 | 0 | 323 |
JSON | 4 | 0 | 0 | 123 |
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.60 |
Average class complexity | 60.67 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 6.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 21 | 84.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 14 | 50.00% |
▷ Anonymous functions | 14 | 50.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
46 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/fancybox-1.3.4/fancy_title_main.png | 0.09KB | 0.14KB | 0.00% |
fancybox/1.3.28/fancy_title_left.png | 0.49KB | 0.82KB | 0.00% |
vendor/fancybox-1.3.4/fancy_shadow_sw.png | 0.33KB | 0.48KB | 0.00% |
fancybox/2.2.0/fancybox_sprite.png | 1.33KB | 1.42KB | 0.00% |
fancybox/2.2.0/fancybox_sprite@2x.png | 6.40KB | 5.76KB | ▼ 9.96% |