Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.90ms] Passed 4 tests
A check of server-side resources used by Photo Galleria
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 45.03 ▲5.67 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.84 ▼3.45 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.24 ▲0.19 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 80.15 ▼18.24 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.07 ▲1.92 |
Photo Galleria /wp-admin/options-general.php?page=photo_galleria_options | 3.18 | 29.52 |
Server storage [IO: ▲0.27MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Photo Galleria
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 14.63 ▼0.02 | 1.80 ▼0.41 | 40.72 ▼9.98 |
Dashboard /wp-admin | 2,213 ▲28 | 5.09 ▼0.73 | 110.88 ▼4.93 | 36.91 ▼7.10 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.02 | 38.24 ▲3.86 | 36.00 ▼0.16 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.47 ▲0.33 | 685.18 ▲3.51 | 54.40 ▼0.60 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.25 ▲0.10 | 110.70 ▲10.67 | 46.39 ▼0.54 |
Photo Galleria /wp-admin/options-general.php?page=photo_galleria_options | 970 | 2.05 | 25.39 | 36.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- 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
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=photo_galleria_options
- > Notice in wp-content/plugins/photo-galleria/photo-galleria.php+201
Trying to access array offset on value of type bool
SRP 50% 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
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/photo-galleria/photo-galleria.php:18
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/photo-galleria/photo-galleria.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (Design options)
- Plugin Name: Please specify the plugin name on the first line (
=== photo-galleria ===
)
photo-galleria/photo-galleria.php Passed 13 tests
The main file in "Photo Galleria" v. 0.5.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
Creates beautiful slideshows from embedded WordPress galleries.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected646 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 93 | 77 | 289 |
CSS | 1 | 3 | 1 | 213 |
HTML | 1 | 14 | 3 | 81 |
JavaScript | 3 | 18 | 31 | 63 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.16MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/themes/classic/classic-map.png | 1.80KB | 0.67KB | ▼ 62.77% |
screenshot-1.png | 161.37KB | 159.66KB | ▼ 1.06% |