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.01MB] [CPU: ▼3.01ms] Passed 4 tests
Analyzing server-side resources used by Image Parallax
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.93 ▲5.77 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.27 ▼0.71 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.24 ▲2.44 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 79.13 ▼16.25 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.78 ▲2.47 |
Server storage [IO: ▲0.61MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
wm-parallax-version |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Image Parallax
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.47 ▲0.12 | 1.97 ▲0.50 | 44.01 ▲5.58 |
Dashboard /wp-admin | 2,195 ▲14 | 5.61 ▼0.06 | 93.84 ▼9.08 | 46.19 ▲2.97 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.02 ▲0.02 | 38.36 ▲4.57 | 32.39 ▼8.08 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.18 ▲0.12 | 694.33 ▲56.73 | 51.79 ▼3.81 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▲0.01 | 92.62 ▼17.94 | 40.11 ▼5.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- wm-parallax-version
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-parallax/plugin.php:143
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/image-parallax/tpl/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/image-parallax/tpl/editor.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: picture, 3d, image, parallax
image-parallax/plugin.php 85% from 13 tests
This is the main PHP file of "Image Parallax" version 2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("image-parallax.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected548 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 8 | 14 | 283 |
PHP | 3 | 14 | 16 | 188 |
CSS | 3 | 4 | 0 | 77 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 7 | |
▷ Static methods | 7 | 100.00% |
▷ Public methods | 7 | 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 | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.24MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 248.67KB | 97.95KB | ▼ 60.61% |
img/parallax.png | 1.12KB | 1.24KB | 0.00% |