Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.32ms] Passed 4 tests
Analyzing server-side resources used by Gallery Image Content Post
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.08 ▼5.27 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.15 ▼7.16 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.37 ▼0.45 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 85.34 ▼20.40 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.88 ▲1.07 |
Gallery Image Content /wp-admin/options-general.php?page=gallery-image-content | 3.24 | 33.01 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
gallery_image_content |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Gallery Image Content Post
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲158 | 13.91 ▼0.49 | 11.04 ▲8.86 | 38.95 ▼10.47 |
Dashboard /wp-admin | 2,207 ▲16 | 5.81 ▲0.90 | 103.33 ▼3.37 | 41.69 ▼3.22 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.03 ▲0.03 | 38.26 ▲3.13 | 39.00 ▲2.15 |
Add New Post /wp-admin/post-new.php | 1,529 ▲15 | 23.45 ▲5.79 | 633.71 ▲28.47 | 73.51 ▲20.53 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.30 ▲0.03 | 94.30 ▼6.07 | 40.71 ▼3.02 |
Gallery Image Content /wp-admin/options-general.php?page=gallery-image-content | 858 | 2.05 | 25.29 | 29.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- gallery_image_content
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/gallery-image-content-post/inc/plugin-form.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please a description for screenshot #4 in gallery-image-content-post/assets to your readme.txt
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
gallery-image-content-post/gallery-image-content.php 85% from 13 tests
"Gallery Image Content Post" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("gallery-image-content-post.php" instead of "gallery-image-content.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin678 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 82 | 7 | 458 |
PHP | 2 | 40 | 132 | 144 |
PO File | 1 | 14 | 28 | 46 |
JavaScript | 2 | 4 | 6 | 30 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
No PNG images were found in this plugin