Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼4.16ms] Passed 4 tests
This is a short check of server-side resources used by BMo Expo - a Wordpress and NextGEN Gallery plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 38.16 ▼5.50 |
Dashboard /wp-admin | 3.56 ▲0.26 | 49.18 ▼2.55 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 49.82 ▲5.63 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 84.48 ▼10.69 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 37.00 ▲2.12 |
Options /wp-admin/admin.php?page=bmo-expo-admin-options | 3.53 | 33.86 |
Features & Usage /wp-admin/admin.php?page=bmo-expo-admin | 3.46 | 32.09 |
Server storage [IO: ▲2.66MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 93 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
options_bmo_expo |
widget_theysaidso_widget |
widget_recent-posts |
options_bmo_expo_version |
Browser metrics Passed 4 tests
An overview of browser requirements for BMo Expo - a Wordpress and NextGEN Gallery plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲105 | 13.98 ▼0.61 | 1.54 ▼0.22 | 37.18 ▼8.02 |
Dashboard /wp-admin | 2,225 ▲34 | 5.99 ▲0.11 | 169.12 ▲63.63 | 82.09 ▲36.18 |
Posts /wp-admin/edit.php | 2,120 ▲34 | 2.62 ▲0.63 | 48.33 ▲11.01 | 36.67 ▲5.59 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 23.55 ▲6.11 | 717.79 ▲24.27 | 37.87 ▼16.36 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 5.23 ▲1.05 | 106.32 ▲2.85 | 69.59 ▲22.83 |
Options /wp-admin/admin.php?page=bmo-expo-admin-options | 1,533 | 4.02 | 78.40 | 32.29 |
Features & Usage /wp-admin/admin.php?page=bmo-expo-admin | 2,884 | 24.37 | 791.36 | 84.99 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- options_bmo_expo_version
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bmo-expo-admin-options
- > Deprecated in wp-content/plugins/bmo-expo/classes/admin/admin_page_options.php+330
Function create_function() is deprecated
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/bmo-expo/classes/admin/tinyMCEWindow.php
- > /wp-content/plugins/bmo-expo/bmo_expo.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'BMO_EXPO_CLASSPATH/admin/admin_page_general.php' (include_path='.:/usr/share/php') in wp-content/plugins/bmo-expo/classes/admin/admin.php on line 24
- > PHP Warning
require_once(BMO_EXPO_CLASSPATH/admin/admin_page_general.php): failed to open stream: No such file or directory in wp-content/plugins/bmo-expo/classes/admin/admin.php on line 24
- > PHP Warning
Use of undefined constant BMO_EXPO_CLASSPATH - assumed 'BMO_EXPO_CLASSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bmo-expo/classes/admin/admin.php on line 24
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bmo-expo-admin
- > Other (severe) in unknown
chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Screenshot BMo Expo scrollGallery Example - Design Classic Black), #2 (Screenshot BMo Expo scrollGallery Example - Design Shadow), #3 (Screenshot BMo Expo scrollGallery Example - Admin Interface), #4 (Screenshot BMo Expo scrollGallery Example - Admin Options)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== bmo-expo ===
) - Tags: Too many tags (31 tag instead of maximum 10); only the first 5 tags are used in your directory listing
bmo-expo/bmo_expo.php 85% from 13 tests
The primary PHP file in "BMo Expo - a Wordpress and NextGEN Gallery plugin" version 1.0.15 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bmo-expo.php" instead of "bmo_expo.php")
- Description: Keep the plugin description shorter than 140 characters (currently 369 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin8,705 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 855 | 1,433 | 4,186 |
CSS | 12 | 116 | 156 | 1,658 |
PHP | 7 | 309 | 242 | 1,352 |
Markdown | 3 | 268 | 0 | 850 |
PO File | 3 | 250 | 377 | 659 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 37.20 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 3.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 63 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 57 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 9.52% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
32 PNG files occupy 0.87MB with 0.54MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/admin/img/BMoIcons_scrollGallery_top.png | 6.79KB | 2.06KB | ▼ 69.67% |
css/imgs/BMoExpoIcon.png | 0.27KB | 0.23KB | ▼ 13.98% |
css/admin/img/material/BMoIcons_scrollGallery_left.png | 6.76KB | 2.18KB | ▼ 67.82% |
css/themes/scrollLightboxGallery/imgs/controlsSlideshow.png | 3.91KB | 0.57KB | ▼ 85.44% |
css/admin/img/BMoIcons_scrollGallery_bottom.png | 6.91KB | 2.04KB | ▼ 70.56% |