Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Error in wp-content/plugins/reflex-gallery/lib/install-db.php+40
Uncaught Error: Using $this when not in object context in wp-content/plugins/reflex-gallery/lib/install-db.php:40
Stack trace:
#0 wp-content/plugins/reflex-gallery/reflex-gallery.php(67): install_db()
#1 wp-includes/class-wp-hook.php(310): ReFlex_Gallery->create_db_tables()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.08ms] Passed 4 tests
This is a short check of server-side resources used by ReFlex Gallery » WordPress Photo Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 33.42 ▼7.09 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.51 ▼1.60 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.52 ▲3.21 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.30 ▲1.79 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.08 ▼1.42 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 108 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_reflex_gallery |
wp_reflex_gallery_images |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
reflex_gallery_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for ReFlex Gallery » WordPress Photo Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.20 ▼1.18 | 4.39 ▲2.20 | 39.63 ▼12.36 |
Dashboard /wp-admin | 2,209 ▲24 | 5.92 ▲0.02 | 105.52 ▼0.86 | 40.58 ▼0.41 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.97 ▼0.04 | 42.34 ▲0.50 | 36.97 ▲2.10 |
Add New Post /wp-admin/post-new.php | 1,544 ▲24 | 18.29 ▼5.04 | 641.98 ▼46.52 | 47.38 ▼8.17 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.17 ▼0.04 | 98.39 ▼5.37 | 43.74 ▼2.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_reflex_gallery
- wp_reflex_gallery_images
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- reflex_gallery_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/reflex-gallery/admin/add-images.php
- > /wp-content/plugins/reflex-gallery/admin/overview.php
- > /wp-content/plugins/reflex-gallery/admin/add-gallery.php
- > /wp-content/plugins/reflex-gallery/admin/edit-gallery.php
- > /wp-content/plugins/reflex-gallery/admin/ws.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/reflex-gallery/reflex-gallery.php:19
- > WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 for query SELECT Id, name FROM
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 24 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (Represent an entire gallery as a thumbnail - grouped like albums), #2 (PrettyPhoto style pop-up for image gallery), #3 (Dynamically switch to slider for mobile devices (480 pixels or less)), #4 (Gallery Overview admin panel - easily maintain multiple galleries), #5 (Add galleries to group images into), #6 (Add images by first selecting which gallery to add image into), #7 (Add images (multiple image upload is a pro feature))
reflex-gallery/reflex-gallery.php Passed 13 tests
The main PHP file in "ReFlex Gallery » WordPress Photo Gallery" ver. 3.1.7 adds more information about the plugin and also serves as the entry point for this plugin
79 characters long description:
Wordpress Plugin for creating responsive image galleries. By: HahnCreativeGroup
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected4,342 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 474 | 335 | 2,239 |
PHP | 9 | 100 | 31 | 1,054 |
CSS | 6 | 118 | 45 | 572 |
PO File | 3 | 211 | 358 | 458 |
SVG | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 1 | 2.56% |
▷ Public methods | 38 | 97.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.56% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
34 PNG files occupy 0.25MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
scripts/images/prettyPhoto/facebook/contentPatternLeft.png | 0.13KB | 0.10KB | ▼ 24.82% |
scripts/images/prettyPhoto/dark_rounded/sprite.png | 3.98KB | 2.56KB | ▼ 35.79% |
scripts/images/prettyPhoto/facebook/btnPrevious.png | 0.81KB | 0.58KB | ▼ 27.90% |
scripts/images/prettyPhoto/facebook/btnNext.png | 0.83KB | 0.57KB | ▼ 30.77% |
scripts/images/prettyPhoto/facebook/contentPatternBottom.png | 0.14KB | 0.11KB | ▼ 21.13% |