65% bmo-expo

Code Review | BMo Expo - a Wordpress and NextGEN Gallery plugin

WordPress plugin BMo Expo - a Wordpress and NextGEN Gallery plugin scored 65% from 54 tests.

About plugin

  • Plugin page: bmo-expo
  • Plugin version: 1.0.15
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Oct 12, 2013
  • Latest release: Jul 11, 2014
  • Number of updates: 45
  • Update frequency: every 6.2 days
  • Top authors: bmodesign2 (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

700+ active / 36,091 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1438.16 ▼5.50
Dashboard /wp-admin3.56 ▲0.2649.18 ▼2.55
Posts /wp-admin/edit.php3.67 ▲0.3249.82 ▲5.63
Add New Post /wp-admin/post-new.php6.14 ▲0.2684.48 ▼10.69
Media Library /wp-admin/upload.php3.48 ▲0.2537.00 ▲2.12
Options /wp-admin/admin.php?page=bmo-expo-admin-options3.5333.86
Features & Usage /wp-admin/admin.php?page=bmo-expo-admin3.4632.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲10513.98 ▼0.611.54 ▼0.2237.18 ▼8.02
Dashboard /wp-admin2,225 ▲345.99 ▲0.11169.12 ▲63.6382.09 ▲36.18
Posts /wp-admin/edit.php2,120 ▲342.62 ▲0.6348.33 ▲11.0136.67 ▲5.59
Add New Post /wp-admin/post-new.php1,546 ▲3223.55 ▲6.11717.79 ▲24.2737.87 ▼16.36
Media Library /wp-admin/upload.php1,422 ▲345.23 ▲1.05106.32 ▲2.8569.59 ▲22.83
Options /wp-admin/admin.php?page=bmo-expo-admin-options1,5334.0278.4032.29
Features & Usage /wp-admin/admin.php?page=bmo-expo-admin2,88424.37791.3684.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

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
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript148551,4334,186
CSS121161561,658
PHP73092421,352
Markdown32680850
PO File3250377659

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 code0.41
Average class complexity37.20
▷ Minimum class complexity3.00
▷ Maximum class complexity93.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods63
▷ Static methods00.00%
▷ Public methods5790.48%
▷ Protected methods00.00%
▷ Private methods69.52%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
css/admin/img/BMoIcons_scrollGallery_top.png6.79KB2.06KB▼ 69.67%
css/imgs/BMoExpoIcon.png0.27KB0.23KB▼ 13.98%
css/admin/img/material/BMoIcons_scrollGallery_left.png6.76KB2.18KB▼ 67.82%
css/themes/scrollLightboxGallery/imgs/controlsSlideshow.png3.91KB0.57KB▼ 85.44%
css/admin/img/BMoIcons_scrollGallery_bottom.png6.91KB2.04KB▼ 70.56%