Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/good-old-gallery/good-old-gallery.php+42
Accessing static property GoodOldGallery::$is_loaded as non static
Server metrics [RAM: ▼1.95MB] [CPU: ▼50.60ms] Passed 4 tests
An overview of server-side resources used by Good Old Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 6.22 ▼31.84 |
Dashboard /wp-admin | 2.06 ▼1.24 | 8.02 ▼39.27 |
Posts /wp-admin/edit.php | 2.06 ▼1.30 | 6.22 ▼37.89 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.83 | 5.87 ▼93.41 |
Media Library /wp-admin/upload.php | 2.06 ▼1.17 | 5.69 ▼31.40 |
Add New /wp-admin/post-new.php?post_type=goodoldgallery | 2.06 | 5.28 |
Settings /wp-admin/edit.php?post_type=goodoldgallery&page=gog_settings | 2.06 | 5.33 |
Galleries /wp-admin/edit.php?post_type=goodoldgallery | 2.06 | 5.27 |
Themes /wp-admin/edit.php?post_type=goodoldgallery&page=gog_themes | 2.06 | 5.24 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
gog_plugin |
gog_settings |
theysaidso_admin_options |
widget_goodoldgallerywidget |
db_upgraded |
gog_themes |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Good Old Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 13.64 ▼0.73 | 1.70 ▼0.13 | 44.18 ▲1.78 |
Dashboard /wp-admin | 2,243 ▲52 | 4.95 ▲0.04 | 98.71 ▼1.49 | 78.55 ▲36.04 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.02 ▼0.12 | 36.18 ▲1.25 | 32.86 ▼3.24 |
Add New Post /wp-admin/post-new.php | 1,568 ▲49 | 23.04 ▼0.04 | 774.69 ▲182.23 | 57.88 ▲6.96 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.18 ▼0.11 | 100.34 ▲3.40 | 69.15 ▲25.67 |
Add New /wp-admin/post-new.php?post_type=goodoldgallery | 1,460 | 2.54 | 49.18 | 64.79 |
Settings /wp-admin/edit.php?post_type=goodoldgallery&page=gog_settings | 1,218 | 2.01 | 35.84 | 57.86 |
Galleries /wp-admin/edit.php?post_type=goodoldgallery | 1,087 | 1.95 | 32.04 | 26.93 |
Themes /wp-admin/edit.php?post_type=goodoldgallery&page=gog_themes | 923 | 1.83 | 30.92 | 38.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/good-old-gallery/good-old-gallery.php+42
Accessing static property GoodOldGallery::$is_loaded as non static
- The uninstall procedure has failed, leaving 7 options in the database
- widget_goodoldgallerywidget
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=goodoldgallery&page=gog_themes
- > Notice in wp-content/plugins/good-old-gallery/good-old-gallery.php+42
Accessing static property GoodOldGallery::$is_loaded as non static
- 10 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=goodoldgallery&page=gog_themes
- > Deprecated in wp-content/plugins/good-old-gallery/includes/PageThemes.class.php+84
Non-static method GOG_FormBuilder::parseForm() should not be called statically
- > GET request to /wp-admin/post-new.php?post_type=goodoldgallery
- > User deprecated in wp-includes/functions.php+5453
Function wp_get_single_post is deprecated since version 3.5.0! Use get_post() instead.
- 9 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=goodoldgallery&page=gog_themes
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method GOG_FormBuilder::select() should not be called statically
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=goodoldgallery&page=gog_themes
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method GOG_FormBuilder::checkbox() should not be called statically
- > GET request to /wp-admin/edit.php?post_type=goodoldgallery&page=gog_settings
- > Deprecated in wp-content/plugins/good-old-gallery/includes/PageSettings.class.php+180
Non-static method GOG_Helpers::orderFields() should not be called statically
- > GET request to /wp-admin/edit.php?post_type=goodoldgallery&page=gog_settings
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method GOG_FormBuilder::markup() should not be called statically
- > GET request to /wp-admin/edit.php?post_type=goodoldgallery&page=gog_settings
- > Deprecated in wp-admin/includes/template.php+1771
Non-static method GOG_PageSettings::settingsHeader() should not be called statically
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=goodoldgallery&page=gog_settings
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method GOG_FormBuilder::text() should not be called statically
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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/good-old-gallery/includes/delete.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/good-old-gallery/includes/Widget.class.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/good-old-gallery/good-old-gallery.php:20
- > 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 fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=goodoldgallery&page=gog_settings
- > Network (severe)
wp-content/plugins/good-old-gallery/assets/css/assets/fonts/fontawesome-webfont.woff - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=goodoldgallery&page=gog_settings
- > Network (severe)
wp-content/plugins/good-old-gallery/assets/css/assets/fonts/fontawesome-webfont.ttf - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=goodoldgallery&page=gog_themes
- > Network (severe)
https://button.flattr.com/loader.js?mode=auto - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
- Screenshots: Please add images for these screenshots: #1 (Galleries listing page), #2 (Edit gallery page), #3 (Default settings page), #4 (Gallery shortcode generator), #5 (Widget settings)
good-old-gallery/good-old-gallery.php 85% from 13 tests
"Good Old Gallery" version 2.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 256 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin4,692 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 240 | 263 | 2,152 |
PHP | 13 | 316 | 379 | 1,797 |
CSS | 4 | 46 | 53 | 457 |
SVG | 1 | 0 | 0 | 255 |
Markdown | 1 | 15 | 0 | 31 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 27.33 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 69 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
9 PNG files occupy 0.27MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 59.29KB | 58.25KB | ▼ 1.76% |
screenshot-3.png | 65.80KB | 65.97KB | 0.00% |
screenshot-1.png | 25.66KB | 25.26KB | ▼ 1.55% |
screenshot-4.png | 51.22KB | 50.63KB | ▼ 1.15% |
themes/good-old-gallery-dots/good-old-gallery-dots.png | 22.70KB | 3.65KB | ▼ 83.93% |