Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.34MB] [CPU: ▲8.33ms] Passed 4 tests
This is a short check of server-side resources used by Gallery Images Ape
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.85 ▲1.34 | 52.30 ▲9.79 |
Dashboard /wp-admin | 4.72 ▲1.38 | 57.98 ▲8.36 |
Posts /wp-admin/edit.php | 4.78 ▲1.38 | 66.90 ▲16.37 |
Add New Post /wp-admin/post-new.php | 7.27 ▲1.34 | 97.61 ▲4.74 |
Media Library /wp-admin/upload.php | 4.58 ▲1.31 | 49.42 ▲10.43 |
Support /wp-admin/edit.php?post_type=wpape_gallery_type&page=wpape-gallery-support | 4.13 | 29.09 |
Premium /wp-admin/edit.php?post_type=wpape_gallery_type&page=wpape-gallery-premium | 4.13 | 31.35 |
New Gallery /wp-admin/post-new.php?post_type=wpape_gallery_type | 5.20 | 64.48 |
Galleries /wp-admin/edit.php?post_type=wpape_gallery_type | 4.72 | 54.30 |
Options /wp-admin/edit.php?post_type=wpape_gallery_type&page=wpape-gallery-settings | 4.63 | 45.07 |
Demos /wp-admin/edit.php?post_type=wpape_gallery_type&page=wpape-gallery-demo | 4.13 | 30.86 |
Themes /wp-admin/edit.php?post_type=wpape_gallery_theme | 4.82 | 52.46 |
Server storage [IO: ▲5.44MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 364 new files
Database: no new tables, 11 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
wpApeGalleryThemesImported |
widget_recent-posts |
wpape_default_theme |
widget_theysaidso_widget |
widget_recent-comments |
widget_gallery_images_ape_widget |
apeGalleryInstallTime |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Gallery Images Ape
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲85 | 14.40 ▼0.23 | 1.69 ▼0.09 | 32.63 ▼11.69 |
Dashboard /wp-admin | 2,239 ▲59 | 5.64 ▲0.03 | 90.94 ▼0.76 | 36.66 ▼9.17 |
Posts /wp-admin/edit.php | 2,144 ▲62 | 2.00 ▼0.04 | 40.25 ▲5.61 | 39.32 ▲0.70 |
Add New Post /wp-admin/post-new.php | 6,277 ▲4,749 | 26.79 ▲3.57 | 896.63 ▲201.27 | 39.44 ▼18.86 |
Media Library /wp-admin/upload.php | 1,444 ▲44 | 4.26 ▲0.04 | 95.06 ▼15.32 | 43.96 ▼0.97 |
Support /wp-admin/edit.php?post_type=wpape_gallery_type&page=wpape-gallery-support | 1,885 | 2.42 | 46.01 | 190.88 |
Premium /wp-admin/edit.php?post_type=wpape_gallery_type&page=wpape-gallery-premium | 1,882 | 2.54 | 52.23 | 59.75 |
New Gallery /wp-admin/post-new.php?post_type=wpape_gallery_type | 2,636 | 4.83 | 92.81 | 134.26 |
Galleries /wp-admin/edit.php?post_type=wpape_gallery_type | 1,173 | 1.96 | 37.26 | 34.59 |
Options /wp-admin/edit.php?post_type=wpape_gallery_type&page=wpape-gallery-settings | 914 | 2.06 | 24.87 | 30.08 |
Demos /wp-admin/edit.php?post_type=wpape_gallery_type&page=wpape-gallery-demo | 1,885 | 2.51 | 40.86 | 57.39 |
Themes /wp-admin/edit.php?post_type=wpape_gallery_theme | 1,975 | 2.29 | 42.97 | 36.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 11 options in the database
- wpApeGalleryThemesImported
- apeGalleryInstallTime
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_gallery_images_ape_widget
- widget_theysaidso_widget
- widget_recent-comments
- wpApeGalleryInstallVersion
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 29× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/gallery-images-ape/modules/fields/template/field/checkbox/button.tpl.php
- > /wp-content/plugins/gallery-images-ape/modules/fields/template/field/checkbox/switch/c3.tpl.php
- > /wp-content/plugins/gallery-images-ape/modules/fields/template/element/label.tpl.php
- > /wp-content/plugins/gallery-images-ape/modules/fields/template/field/composite/default.tpl.php
- > /wp-content/plugins/gallery-images-ape/modules/fields/template/field/text/slider.tpl.php
- > /wp-content/plugins/gallery-images-ape/modules/fields/template/field/hidden/default.tpl.php
- > /wp-content/plugins/gallery-images-ape/modules/fields/template/field/composite/columns.tpl.php
- > /wp-content/plugins/gallery-images-ape/modules/fields/template/field/checkbox/default.tpl.php
- > /wp-content/plugins/gallery-images-ape/modules/fields/template/field/text/color.tpl.php
- > /wp-content/plugins/gallery-images-ape/modules/fields/template/field/text/group.tpl.php
- 292× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: id in wp-content/plugins/gallery-images-ape/modules/fields/template/field/select/default.tpl.php on line 15
- > PHP Notice
Undefined variable: value in wp-content/plugins/gallery-images-ape/modules/fields/template/field/text/default/llc4.tpl.php on line 14
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/gallery-images-ape/modules/fields/template/field/textarea/default.tpl.php on line 8
- > PHP Notice
Undefined variable: options in wp-content/plugins/gallery-images-ape/modules/fields/template/field/checkbox/switch/c3.tpl.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gallery-images-ape/modules/fields/config/metabox/sub-fields/font-desc.php:47
- > PHP Notice
Undefined variable: value in wp-content/plugins/gallery-images-ape/modules/fields/template/field/checkbox/switch.tpl.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function selected() in wp-content/plugins/gallery-images-ape/modules/fields/template/field/themes/default.tpl.php:15
- > PHP Fatal error
Uncaught Error: Class 'apeGalleryFieldsFieldCheckboxGroup' not found in wp-content/plugins/gallery-images-ape/modules/fields/include/apeGalleryFieldsField/apeGalleryFieldsFieldCheckboxGroupButton.php:9
- > PHP Fatal error
Uncaught Error: Class 'apeGalleryFieldsFieldCheckboxGroup' not found in wp-content/plugins/gallery-images-ape/modules/fields/include/apeGalleryFieldsField/apeGalleryFieldsFieldCheckboxGroupSwitch.php:9
- > PHP Notice
Undefined variable: name in wp-content/plugins/gallery-images-ape/modules/fields/template/field/text/default/llc10.tpl.php on line 13
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
gallery-images-ape/index.php 92% from 13 tests
The principal PHP file in "Gallery Images Ape" v. 2.2.8 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gallery-images-ape.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected48,813 lines of code in 245 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 45 | 3,315 | 3,217 | 14,240 |
SVG | 3 | 0 | 12 | 8,611 |
PHP | 128 | 1,903 | 762 | 8,561 |
CSS | 27 | 370 | 375 | 6,417 |
PO File | 12 | 2,406 | 2,685 | 5,353 |
JSON | 8 | 0 | 0 | 2,845 |
HTML | 7 | 181 | 24 | 1,987 |
Markdown | 6 | 162 | 0 | 533 |
Sass | 6 | 67 | 32 | 227 |
Bourne Shell | 2 | 9 | 12 | 26 |
Pug | 1 | 7 | 1 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 16.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 176.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 1 | 1.85% |
▷ Concrete classes | 53 | 98.15% |
▷ Final classes | 0 | 0.00% |
Methods | 329 | |
▷ Static methods | 47 | 14.29% |
▷ Public methods | 224 | 68.09% |
▷ Protected methods | 31 | 9.42% |
▷ Private methods | 74 | 22.49% |
Functions | 23 | |
▷ Named functions | 21 | 91.30% |
▷ Anonymous functions | 2 | 8.70% |
Constants | 42 | |
▷ Global constants | 33 | 78.57% |
▷ Class constants | 9 | 21.43% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/gallery-shortcode.png | 7.49KB | 4.70KB | ▼ 37.27% |
modules/fields/asset/jquery-minicolors-master/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
modules/type/images/cubeslider.png | 6.46KB | 4.11KB | ▼ 36.44% |
modules/type/images/carousel.png | 0.87KB | 0.48KB | ▼ 44.73% |
assets/css/icons/download1.png | 0.54KB | 0.42KB | ▼ 22.14% |