Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.32ms] Passed 4 tests
Analyzing server-side resources used by Parallax Image
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.09 ▼1.13 |
Dashboard /wp-admin | 3.32 ▲0.01 | 42.72 ▼8.79 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.65 ▲0.39 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.56 ▼6.00 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.71 ▼1.35 |
Parallax Options /wp-admin/options-general.php?page=dd-parallax-options-page | 3.20 | 32.32 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
dd_parallax_mce_button |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Parallax Image
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.53 ▼0.87 | 5.02 ▲3.16 | 43.85 ▼0.03 |
Dashboard /wp-admin | 2,215 ▲24 | 4.80 ▼1.06 | 111.83 ▲12.34 | 41.09 ▼4.58 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.02 ▼0.01 | 41.49 ▼1.35 | 35.14 ▲0.34 |
Add New Post /wp-admin/post-new.php | 1,533 ▼1 | 23.38 ▼0.25 | 658.47 ▲72.37 | 51.63 ▲1.13 |
Media Library /wp-admin/upload.php | 1,394 ▲12 | 4.18 ▲0.04 | 95.07 ▼2.03 | 43.52 ▲1.38 |
Parallax Options /wp-admin/options-general.php?page=dd-parallax-options-page | 905 | 2.03 | 25.78 | 52.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- dd_parallax_mce_button
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
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)
Even though no errors were found, 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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/parallax-image/assets/admin-scripts.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/parallax-image/assets/shortcode.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Add a description for screenshot #4 in parallax-image/assets to your readme.txt
parallax-image/parallax-image.php 85% from 13 tests
The entry point to "Parallax Image" version 1.7.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)
- Requires PHP: The required version number did not match the one declared in readme.txt ("5.4" instead of "5.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,071 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 196 | 675 | 900 |
JavaScript | 3 | 3 | 5 | 88 |
Markdown | 1 | 38 | 0 | 63 |
CSS | 2 | 1 | 0 | 20 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.74 |
Average class complexity | 134.00 |
▷ Minimum class complexity | 134.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 4.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.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 | 35 | |
▷ Static methods | 9 | 25.71% |
▷ Public methods | 33 | 94.29% |
▷ Protected methods | 2 | 5.71% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 1 | 10.00% |
▷ Class constants | 9 | 90.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin