Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼3.12ms] Passed 4 tests
Analyzing server-side resources used by PG Slideshow-Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 48.73 ▲6.80 |
Dashboard /wp-admin | 3.51 ▲0.16 | 53.63 ▼14.29 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 53.32 ▲0.91 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 94.26 ▼1.97 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 39.10 ▲2.86 |
General Settings /wp-admin/edit.php?post_type=portgal&page=general_settings | 3.70 | 42.33 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 106 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_pgwidget |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PG Slideshow-Gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲48 | 13.30 ▼1.22 | 4.36 ▲2.39 | 32.69 ▼10.70 |
Dashboard /wp-admin | 2,235 ▲55 | 4.90 ▼0.75 | 100.56 ▲8.10 | 47.63 ▲8.64 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 2.35 ▲0.40 | 35.32 ▼1.81 | 37.93 ▼1.04 |
Add New Post /wp-admin/post-new.php | 6,236 ▲4,710 | 19.15 ▼4.10 | 941.18 ▲321.67 | 51.72 ▼6.26 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.52 ▲0.30 | 93.58 ▼10.50 | 48.80 ▲2.75 |
General Settings /wp-admin/edit.php?post_type=portgal&page=general_settings | 2,151 | 3.50 | 43.38 | 27.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_pgwidget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/pg-slideshow-gallery/views/PSG_PGPostType/settings.php
- 28× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: data in wp-content/plugins/pg-slideshow-gallery/views/PSG_PGSlideshowSlide/skitterfrontend_attachment.php on line 13
- > PHP Notice
Undefined variable: data in wp-content/plugins/pg-slideshow-gallery/views/PSG_PGSlideshowSlide/galleryfrontend_attachment.php on line 11
- > PHP Notice
Undefined variable: data in wp-content/plugins/pg-slideshow-gallery/views/PSG_PG/skitter.php on line 1
- > PHP Notice
Undefined variable: data in wp-content/plugins/pg-slideshow-gallery/views/PSG_PGPostType/settings.php on line 1
- > PHP Notice
Undefined variable: data in wp-content/plugins/pg-slideshow-gallery/views/PSG_PGPostType/style-settings.php on line 1
- > PHP Notice
Undefined variable: data in wp-content/plugins/pg-slideshow-gallery/views/PSG_PGSCRIPTS/skitter.php on line 3
- > PHP Notice
Undefined variable: data in wp-content/plugins/pg-slideshow-gallery/views/PSG_PGPostType/pgtabs.php on line 1
- > PHP Notice
Undefined variable: data in wp-content/plugins/pg-slideshow-gallery/views/PSG_PG/slideshow.php on line 1
- > PHP Notice
Undefined variable: data in wp-content/plugins/pg-slideshow-gallery/views/PSG_PGSlideshowSlide/backend_templates.php on line 1
- > PHP Notice
Undefined variable: data in wp-content/plugins/pg-slideshow-gallery/views/PSG_PGSCRIPTS/bxslider.php on line 3
- > PHP Notice
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)
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
pg-slideshow-gallery/gallery.php 77% from 13 tests
The main PHP file in "PG Slideshow-Gallery" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("pg-slideshow-gallery.php" instead of "gallery.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 288 characters long)
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
Success! There were no dangerous files found in this plugin15,173 lines of code in 82 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 23 | 1,785 | 1,395 | 9,376 |
PHP | 41 | 1,191 | 838 | 3,785 |
CSS | 11 | 230 | 35 | 1,748 |
SVG | 4 | 0 | 0 | 236 |
JSON | 1 | 0 | 0 | 14 |
Sass | 2 | 1 | 0 | 14 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 20.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 4.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 60 | 92.31% |
▷ Public methods | 62 | 95.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.62% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 0.11MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/PGPostType/textadd_icon.png | 11.95KB | 2.60KB | ▼ 78.27% |
images/PGPostType/imageadd_icon.png | 12.65KB | 2.74KB | ▼ 78.31% |
images/PG/light-controlpanel.png | 2.90KB | 0.23KB | ▼ 92.08% |
images/PGPostType/textadd_icon1.png | 15.00KB | 1.54KB | ▼ 89.73% |
images/PG/dark-bullet.png | 2.91KB | 0.22KB | ▼ 92.59% |