Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼310.83ms] Passed 4 tests
A check of server-side resources used by Advanced Hover Effects On Image Wpbeckary(Visual Composer)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 59.17 ▲8.56 |
Dashboard /wp-admin | 3.41 ▲0.00 | 32.91 ▼0.14 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 37.00 ▼0.76 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 92.80 ▼1,216.80 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 22.86 ▼25.60 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Hover Effects On Image Wpbeckary(Visual Composer)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,783 ▲29 | 15.81 ▲0.14 | 5.65 ▼0.21 | 2.08 ▼0.38 |
Dashboard /wp-admin | 2,892 ▲31 | 6.10 ▼0.11 | 134.11 ▼6.04 | 165.45 ▼0.08 |
Posts /wp-admin/edit.php | 2,691 ▲3 | 3.25 ▲0.01 | 64.18 ▼2.40 | 218.37 ▲6.62 |
Add New Post /wp-admin/post-new.php | 1,638 ▼113 | 20.80 ▼0.77 | 405.74 ▼56.80 | 210.46 ▲47.88 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.52 ▲0.03 | 146.63 ▲7.13 | 259.52 ▲68.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/advanced-hover-effects-image-wpbakery/aheiw-hover-effects-image/aheiw-hover-effects-image.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function vc_add_shortcode_param() in wp-content/plugins/advanced-hover-effects-image-wpbakery/admin/params/slider/slider-params.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function vc_add_shortcode_param() in wp-content/plugins/advanced-hover-effects-image-wpbakery/admin/params/slider/slider-params.php:6
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/advanced-hover-effects-image-wpbakery/aheiw-hover-effects-image-addon.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/advanced-hover-effects-image-wpbakery/aheiw-hover-effects-image-addon.php:15
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-hover-effects-image-wpbakery/aheiw-hover-effects-image-addon.php on line 14
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/advanced-hover-effects-image-wpbakery/aheiw-hover-effects-image-addon.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
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
These attributes need your attention:
- Screenshots: Screenshot #1 (screenshot 1) image not found
advanced-hover-effects-image-wpbakery/aheiw-hover-effects-image-addon.php 85% from 13 tests
This is the main PHP file of "Advanced Hover Effects On Image Wpbeckary(Visual Composer)" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-hover-effects-image-wpbakery.php" instead of "aheiw-hover-effects-image-addon.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected5,474 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
CSS | 3 | 45 | 70 | 2,098 |
PHP | 5 | 140 | 58 | 672 |
JavaScript | 1 | 11 | 3 | 33 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 8.50 |
▷ Minimum method complexity | 5.00 |
▷ Maximum method complexity | 12.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/hover_effects_icon.png | 2.06KB | 1.21KB | ▼ 41.43% |