Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/gallerio/class/phpthumb.class.php+540
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼0.43MB] [CPU: ▼57.80ms] Passed 4 tests
Analyzing server-side resources used by Gallerio
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 10.40 ▼36.76 |
Dashboard /wp-admin | 3.59 ▲0.25 | 12.03 ▼53.95 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 11.91 ▼39.82 |
Add New Post /wp-admin/post-new.php | 3.60 ▼2.30 | 10.48 ▼100.68 |
Media Library /wp-admin/upload.php | 3.60 ▲0.36 | 17.48 ▼20.04 |
Usage Guide /wp-admin/admin.php?page=guide | 3.60 | 10.16 |
Gallerio /wp-admin/admin.php?page=welcome | 3.60 | 13.64 |
Bulk Upload Pictures /wp-admin/admin.php?page=bulk-upload-pictures | 3.60 | 10.18 |
Gallery /wp-admin/admin.php?page=gallerio | 3.60 | 10.17 |
Upload Pictures /wp-admin/admin.php?page=upload-pictures | 3.60 | 9.26 |
Settings /wp-admin/admin.php?page=settings | 3.60 | 11.48 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_gallerio |
wp_gallerio_images |
wp_gallerio_config |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Gallerio
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲64 | 14.75 ▲0.11 | 2.11 ▲0.15 | 48.40 ▲8.43 |
Dashboard /wp-admin | 2,241 ▲56 | 4.84 ▼1.00 | 109.63 ▲7.02 | 40.49 ▼4.30 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.06 ▲0.07 | 34.82 ▼6.52 | 39.21 ▲3.24 |
Add New Post /wp-admin/post-new.php | 1,556 ▲37 | 23.09 ▼0.02 | 644.38 ▼27.47 | 54.36 ▼4.77 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.22 ▼0.01 | 97.59 ▼9.57 | 45.10 ▲0.62 |
Usage Guide /wp-admin/admin.php?page=guide | 1,062 | 2.03 | 26.55 | 53.20 |
Gallerio /wp-admin/admin.php?page=welcome | 806 | 1.68 | 25.43 | 39.85 |
Bulk Upload Pictures /wp-admin/admin.php?page=bulk-upload-pictures | 775 | 2.06 | 23.38 | 20.86 |
Gallery /wp-admin/admin.php?page=gallerio | 911 | 2.03 | 23.61 | 34.22 |
Upload Pictures /wp-admin/admin.php?page=upload-pictures | 990 | 1.77 | 29.60 | 40.43 |
Settings /wp-admin/admin.php?page=settings | 1,010 | 1.71 | 27.30 | 33.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/gallerio/class/phpthumb.class.php+540
Array and string offset access syntax with curly braces is deprecated
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 72 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings
- > Deprecated in wp-content/plugins/gallerio/class/phpthumb.functions.php+990
Array and string offset access syntax with curly braces is deprecated
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings
- > Deprecated in wp-content/plugins/gallerio/class/phpthumb.class.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; phpthumb has a deprecated constructor
- 78 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings
- > Deprecated in wp-content/plugins/gallerio/gallerio.php+27
Function create_function() is deprecated
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=upload-pictures
- > Notice in wp-content/plugins/gallerio/gallerio.php+1107
Undefined index: gallery_id
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings
- > Notice in wp-content/plugins/gallerio/gallerio.php+1402
Undefined index: mode
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings
- > Notice in wp-content/plugins/gallerio/gallerio.php+1304
Undefined variable: action
- > GET request to /wp-admin/admin.php?page=upload-pictures
- > Notice in wp-content/plugins/gallerio/gallerio.php+839
Trying to get property 'gallery' of non-object
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 fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gallerio/gallerio.php:18
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
gallerio/gallerio.php Passed 13 tests
"Gallerio" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
50 characters long description:
A simple yet powerful gallery plugin for Wordpress
Code Analysis 95% from 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 plugin7,949 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 1,492 | 530 | 7,088 |
JavaScript | 1 | 202 | 77 | 812 |
CSS | 1 | 5 | 16 | 49 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,037)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 236)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 501.00 |
▷ Minimum class complexity | 171.00 |
▷ Maximum class complexity | 1,037.00 |
Average method complexity | 12.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 236.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 | 136 | |
▷ Static methods | 42 | 30.88% |
▷ Public methods | 136 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
no_img.png | 2.35KB | 1.33KB | ▼ 43.44% |
css/images/loading_background.png | 0.13KB | 0.15KB | 0.00% |
css/images/controls.png | 1.23KB | 1.28KB | 0.00% |
css/images/overlay.png | 0.11KB | 0.15KB | 0.00% |
css/images/border.png | 0.07KB | 0.10KB | 0.00% |