Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.03ms] Passed 4 tests
Analyzing server-side resources used by BU Slideshow
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.10 ▼1.25 |
Dashboard /wp-admin | 3.34 ▼0.00 | 45.81 ▼18.63 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.76 ▼2.10 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 86.03 ▼14.12 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.90 ▲1.19 |
Preview Slideshow /wp-admin/admin.php?page=bu-preview-slideshow | 3.26 | 33.69 |
Slideshows /wp-admin/admin.php?page=bu-slideshow | 3.28 | 33.91 |
Edit Slideshow /wp-admin/admin.php?page=bu-edit-slideshow | 3.24 | 31.23 |
Add Slideshow /wp-admin/admin.php?page=bu-add-slideshow | 3.34 | 39.33 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
bu_slideshow_version |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for BU Slideshow
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲79 | 14.41 ▲0.09 | 1.69 ▲0.03 | 42.16 ▲1.39 |
Dashboard /wp-admin | 2,221 ▲50 | 5.64 ▲0.07 | 83.73 ▼11.05 | 38.99 ▼2.96 |
Posts /wp-admin/edit.php | 2,123 ▲26 | 2.04 ▲0.06 | 40.34 ▲2.60 | 37.00 ▲2.08 |
Add New Post /wp-admin/post-new.php | 1,659 ▲133 | 21.92 ▼1.19 | 650.54 ▼52.77 | 55.01 ▲4.08 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.35 ▲0.15 | 97.86 ▼14.31 | 42.60 ▼4.26 |
Preview Slideshow /wp-admin/admin.php?page=bu-preview-slideshow | 797 | 2.02 | 29.43 | 32.88 |
Slideshows /wp-admin/admin.php?page=bu-slideshow | 859 | 2.36 | 29.44 | 24.76 |
Edit Slideshow /wp-admin/admin.php?page=bu-edit-slideshow | 712 | 1.71 | 11.47 | 19.69 |
Add Slideshow /wp-admin/admin.php?page=bu-add-slideshow | 1,215 | 3.32 | 45.34 | 31.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- bu_slideshow_version
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=bu-preview-slideshow
- > Notice in wp-content/plugins/bu-slideshow/interface/preview-slideshow.php+10
Undefined variable: id
SRP 50% 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 take a closer look at the following
- 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'BU_Slideshow' not found in wp-content/plugins/bu-slideshow/interface/edit-slideshow-ui.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/bu-slideshow/uninstall.php:7
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/bu-slideshow/tests/bootstrap.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/bu-slideshow/tests/test-create-slideshows.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bu-slideshow/interface/edit-slideshow-form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bu-slideshow/bu-slideshow.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bu-slideshow/interface/preview-slideshow.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bu-slideshow/interface/manage-slideshows.php:2
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/bu-slideshow/tests/bootstrap.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bu-slideshow/class-bu-slide.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: boston university, slideshow, bu, images
bu-slideshow/bu-slideshow.php Passed 13 tests
This is the main PHP file of "BU Slideshow" version 2.3.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
77 characters long description:
Allows for the creation and display of animated slideshows. Uses sequence.js.
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
Success! There were no dangerous files found in this plugin4,415 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 344 | 199 | 1,552 |
PHP | 14 | 377 | 339 | 1,390 |
CSS | 7 | 21 | 4 | 761 |
LESS | 1 | 118 | 5 | 477 |
Markdown | 1 | 32 | 0 | 92 |
Bourne Shell | 1 | 21 | 6 | 85 |
YAML | 1 | 8 | 0 | 25 |
JSON | 1 | 0 | 0 | 19 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 46.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 128.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 47 | 70.15% |
▷ Public methods | 64 | 95.52% |
▷ Protected methods | 2 | 2.99% |
▷ Private methods | 1 | 1.49% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
6 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
interface/img/sprite.png | 3.61KB | 0.69KB | ▼ 80.88% |
interface/img/tb-close.png | 0.49KB | 0.42KB | ▼ 14.62% |
interface/img/insert-slideshow-icon.png | 1.03KB | 0.11KB | ▼ 89.59% |
interface/js/bu-modal/img/bg.png | 1.04KB | 0.10KB | ▼ 90.16% |
interface/img/arrows.png | 1.44KB | 0.41KB | ▼ 71.33% |