Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼1.20MB] [CPU: ▼41.37ms] Passed 4 tests
An overview of server-side resources used by Maxi BG
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.77 ▼0.69 | 13.98 ▼28.21 |
Dashboard /wp-admin | 2.82 ▼0.49 | 16.91 ▼31.28 |
Posts /wp-admin/edit.php | 2.82 ▼0.54 | 18.08 ▼29.10 |
Add New Post /wp-admin/post-new.php | 2.82 ▼3.07 | 16.75 ▼76.90 |
Media Library /wp-admin/upload.php | 2.82 ▼0.41 | 16.42 ▼14.42 |
Add Slideshow Background /wp-admin/post-new.php?post_type=maxibgslideshow | 2.82 | 16.94 |
Maxi BG /wp-admin/edit.php?post_type=maxibgslideshow | 2.82 | 16.22 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Maxi BG
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,052 ▲317 | 15.67 ▲1.30 | 5.19 ▲3.45 | 40.80 ▼0.30 |
Dashboard /wp-admin | 2,373 ▲185 | 6.37 ▲1.44 | 133.09 ▲23.97 | 42.75 ▲0.63 |
Posts /wp-admin/edit.php | 2,274 ▲185 | 3.33 ▲1.29 | 54.72 ▲18.30 | 31.51 ▼4.41 |
Add New Post /wp-admin/post-new.php | 1,573 ▲40 | 23.30 ▼0.14 | 604.20 ▼78.73 | 35.01 ▼16.88 |
Media Library /wp-admin/upload.php | 1,409 ▲30 | 4.16 ▼0.01 | 85.50 ▼14.43 | 40.72 ▼4.62 |
Add Slideshow Background /wp-admin/post-new.php?post_type=maxibgslideshow | 1,701 | 3.98 | 87.64 | 39.49 |
Maxi BG /wp-admin/edit.php?post_type=maxibgslideshow | 1,251 | 3.24 | 49.90 | 29.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/maxi-bg/lib/cmb/init.php+746
count(): Parameter must be an array or an object that implements Countable
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=maxibgslideshow
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/maxi-bg/lib/cmb/init.php+746
count(): Parameter must be an array or an object that implements Countable
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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/maxi-bg/lib/cmb/tests/phpunit/includes/bootstrap.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/maxi-bg/lib/cmb/init.php:41
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/maxi-bg/lib/cmb/tests/phpunit/tests/CMB_Core_Test.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maxi-bg/maxibg.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/maxi-bg/lib/cmb/example-functions.php:11
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: cycle, maximage, fullscreen, slideshow, background
maxi-bg/maxibg.php 92% from 13 tests
The main PHP file in "Maxi BG" ver. 0.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("maxi-bg.php" instead of "maxibg.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected5,351 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 313 | 425 | 2,249 |
PHP | 10 | 582 | 1,119 | 2,148 |
CSS | 3 | 61 | 21 | 541 |
Markdown | 3 | 88 | 0 | 288 |
Bourne Shell | 1 | 15 | 4 | 59 |
JSON | 1 | 0 | 0 | 31 |
YAML | 1 | 5 | 0 | 18 |
XML | 1 | 0 | 1 | 17 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 57.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 134 | |
▷ Static methods | 34 | 25.37% |
▷ Public methods | 132 | 98.51% |
▷ Protected methods | 2 | 1.49% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/cmb/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
lib/cmb/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/cmb/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
lib/cmb/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/cmb/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |