Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.41MB] [CPU: ▼0.17ms] Passed 4 tests
This is a short check of server-side resources used by AP Background
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 42.12 ▼1.26 |
Dashboard /wp-admin | 3.83 ▲0.53 | 63.23 ▲5.16 |
Posts /wp-admin/edit.php | 3.88 ▲0.52 | 60.83 ▲8.28 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.46 | 96.31 ▼12.85 |
Media Library /wp-admin/upload.php | 3.66 ▲0.44 | 45.80 ▲9.23 |
/wp-admin/admin.php?page=bt-advance-parallax-background/create-new | 3.70 | 42.99 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 106 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_ap_background |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
ap_background_db_version |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
AP Background: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,134 ▲388 | 15.39 ▲1.02 | 6.28 ▲4.51 | 43.82 ▼1.15 |
Dashboard /wp-admin | 2,375 ▲190 | 6.76 ▲1.83 | 141.99 ▲36.40 | 92.00 ▲47.33 |
Posts /wp-admin/edit.php | 2,299 ▲231 | 3.67 ▲1.62 | 49.44 ▲10.31 | 65.27 ▲26.97 |
Add New Post /wp-admin/post-new.php | 1,712 ▲179 | 22.61 ▼0.60 | 661.84 ▲21.17 | 37.41 ▼20.12 |
Media Library /wp-admin/upload.php | 1,423 ▲38 | 4.43 ▲0.23 | 82.93 ▼20.24 | 84.90 ▲42.69 |
/wp-admin/admin.php?page=bt-advance-parallax-background/create-new | 1,011 | 3.37 | 41.67 | 52.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'ap_background_uninstall' not found or invalid function name
- The uninstall procedure failed, leaving 1 table in the database
- wp_ap_background
- Zombie WordPress options were found after uninstall: 7 options
- ap_background_db_version
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/ap-background/includes/html/parallax_content/image-content-layout/default.php
- > /wp-content/plugins/ap-background/includes/html/parallax_content/image-content-layout/flexible.php
- 93× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: query in wp-content/plugins/ap-background/includes/html/parallax_content/wp-content-layout/layout1.php on line 12
- > PHP Warning
Use of undefined constant SFAPB_PLUGIN_DIR - assumed 'SFAPB_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/ap-background/includes/functions.front.php on line 10
- > PHP Notice
Trying to get property 'order' of non-object in wp-content/plugins/ap-background/includes/html/parallax_content/wp-post.php on line 25
- > PHP Notice
Trying to get property 'limit' of non-object in wp-content/plugins/ap-background/includes/html/parallax_content/wp-post.php on line 23
- > PHP Notice
Undefined variable: query in wp-content/plugins/ap-background/includes/html/parallax_content/woo-content-layout/layout2.php on line 11
- > PHP Notice
Trying to get property 'media_source' of non-object in wp-content/plugins/ap-background/includes/html/parallax_content/video.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ap-background/includes/html/create_new.woo_commerce.php:13
- > PHP Notice
Trying to get property 'product_content_type' of non-object in wp-content/plugins/ap-background/includes/html/parallax_content/woo-commerce.php on line 42
- > PHP Notice
Trying to get property 'product_content_type' of non-object in wp-content/plugins/ap-background/includes/html/parallax_content/woo-commerce.php on line 34
- > PHP Notice
Trying to get property 'spacing' of non-object in wp-content/plugins/ap-background/includes/html/parallax_content/image-content-layout/flexible.php on line 12
- > PHP Notice
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 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
5 plugin tags: background parallax, advance parallax, parallax, popup parallax, parallax background
ap-background/ap_background.php 85% from 13 tests
The principal PHP file in "AP Background" v. 3.8.2 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("ap-background.php" instead of "ap_background.php")
- Description: Keep the plugin description shorter than 140 characters (currently 295 characters long)
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
Success! There were no dangerous files found in this plugin8,092 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 321 | 740 | 4,366 |
JavaScript | 8 | 201 | 489 | 2,119 |
CSS | 25 | 190 | 53 | 1,607 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 4.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 8 | 15.09% |
▷ Public methods | 47 | 88.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 11.32% |
Functions | 29 | |
▷ Named functions | 28 | 96.55% |
▷ Anonymous functions | 1 | 3.45% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
43 PNG files occupy 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/pattern-2.png | 0.91KB | 0.10KB | ▼ 89.22% |
assets/images/default.png | 1.55KB | 0.77KB | ▼ 50.53% |
assets/images/notice.png | 1.16KB | 1.21KB | 0.00% |
assets/images/pattern-9.png | 0.92KB | 0.11KB | ▼ 88.16% |
assets/images/pattern-11.png | 0.94KB | 0.11KB | ▼ 88.00% |