Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.79MB] [CPU: ▲1.59ms] Passed 4 tests
A check of server-side resources used by PostGallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.34 ▲0.87 | 48.90 ▲10.90 |
Dashboard /wp-admin | 4.09 ▲0.78 | 53.12 ▼0.19 |
Posts /wp-admin/edit.php | 4.16 ▲0.80 | 51.96 ▲8.85 |
Add New Post /wp-admin/post-new.php | 6.86 ▲0.96 | 91.01 ▼5.88 |
Media Library /wp-admin/upload.php | 3.95 ▲0.72 | 40.49 ▲3.58 |
Add New /wp-admin/post-new.php?post_type=postgalleryslider | 4.33 | 55.79 |
Add New /wp-admin/post-new.php?post_type=gallery | 4.41 | 62.12 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=gallery | 3.96 | 38.49 |
Slider /wp-admin/edit.php?post_type=postgalleryslider | 4.05 | 38.32 |
Galleries /wp-admin/edit.php?post_type=gallery | 4.06 | 40.46 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 90 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
category_children |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for PostGallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,018 ▲257 | 14.30 ▼0.05 | 10.84 ▲9.31 | 54.06 ▲15.40 |
Dashboard /wp-admin | 2,281 ▲101 | 5.04 ▼0.58 | 102.45 ▲19.62 | 44.16 ▲0.17 |
Posts /wp-admin/edit.php | 2,189 ▲92 | 2.44 ▲0.46 | 37.69 ▲1.05 | 33.42 ▼0.82 |
Add New Post /wp-admin/post-new.php | 6,658 ▲5,130 | 27.95 ▲4.71 | 906.20 ▲247.19 | 59.13 ▲6.33 |
Media Library /wp-admin/upload.php | 1,481 ▲81 | 4.28 ▲0.10 | 88.00 ▼21.41 | 37.34 ▼8.68 |
Add New /wp-admin/post-new.php?post_type=postgalleryslider | 2,576 | 3.36 | 62.02 | 45.64 |
Add New /wp-admin/post-new.php?post_type=gallery | 2,862 | 8.06 | 176.45 | 73.90 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=gallery | 1,541 | 2.19 | 32.50 | 31.14 |
Slider /wp-admin/edit.php?post_type=postgalleryslider | 1,132 | 2.40 | 35.24 | 29.19 |
Galleries /wp-admin/edit.php?post_type=gallery | 1,209 | 2.39 | 32.34 | 26.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- category_children
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 take a closer look at the following
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/postgallery/admin/partials/uploaded-image-item.php
- > /wp-content/plugins/postgallery/public/partials/post-gallery-public-display.php
- > /wp-content/plugins/postgallery/admin/partials/slider-admin-display.php
- > /wp-content/plugins/postgallery/admin/partials/post-gallery-admin-display.php
- 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: filename in wp-content/plugins/postgallery/admin/partials/uploaded-image-item.php on line 12
- > PHP Notice
Undefined variable: imageDir in wp-content/plugins/postgallery/admin/partials/uploader-ui.php on line 2
- > PHP Warning
array_unshift() expects parameter 1 to be array, null given in wp-content/plugins/postgallery/templates/slider.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'Lib\\PostGallery' not found in wp-content/plugins/postgallery/includes/PostGallery.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/postgallery/admin/partials/uploader-ui.php:6
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/postgallery/admin/partials/uploader-ui.php on line 4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/postgallery/litebox-templates/default-with-thumbs.php:2
- > PHP Notice
Undefined variable: fullFilename in wp-content/plugins/postgallery/admin/partials/uploaded-image-item.php on line 4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/postgallery/litebox-templates/default.php:1
- > PHP Notice
Undefined variable: currentLangPost in wp-content/plugins/postgallery/admin/partials/uploader-ui.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
postgallery/post-gallery.php 92% from 13 tests
The main PHP file in "PostGallery" ver. 1.12.4 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:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("postgallery.php" instead of "post-gallery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin10,593 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 46 | 1,225 | 1,983 | 5,645 |
JSON | 2 | 0 | 0 | 2,446 |
JavaScript | 15 | 316 | 360 | 1,396 |
CSS | 9 | 138 | 60 | 872 |
PO File | 1 | 107 | 0 | 234 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 26.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 144.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 223 | |
▷ Static methods | 59 | 26.46% |
▷ Public methods | 187 | 83.86% |
▷ Protected methods | 9 | 4.04% |
▷ Private methods | 27 | 12.11% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/image-placeholder.png | 14.82KB | 9.42KB | ▼ 36.42% |
build/css/grabbing.png | 0.11KB | 0.14KB | 0.00% |