Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.13ms] Passed 4 tests
A check of server-side resources used by Arvand Post Grid
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.55 ▲2.82 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.53 ▼1.26 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.03 ▲1.13 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 94.13 ▼1.98 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.64 ▼2.39 |
Styles & Settings /wp-admin/admin.php?page=apg-options | 3.30 | 31.79 |
General /wp-admin/admin.php?page=apg-general | 3.26 | 32.24 |
Information /wp-admin/admin.php?page=apg-information | 3.25 | 30.60 |
Server storage [IO: ▲1.98MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Arvand Post Grid
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲67 | 14.24 ▼0.12 | 1.50 ▼0.19 | 40.16 ▼0.19 |
Dashboard /wp-admin | 2,226 ▲46 | 5.65 ▲0.02 | 92.83 ▲4.15 | 42.95 ▼1.44 |
Posts /wp-admin/edit.php | 2,131 ▲34 | 2.04 ▲0.00 | 38.48 ▲1.38 | 35.90 ▲2.72 |
Add New Post /wp-admin/post-new.php | 1,565 ▲39 | 18.17 ▼4.69 | 661.76 ▲28.08 | 63.08 ▲14.07 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.18 ▼0.02 | 97.36 ▼3.63 | 40.80 ▼3.44 |
Styles & Settings /wp-admin/admin.php?page=apg-options | 946 | 2.04 | 23.74 | 27.54 |
General /wp-admin/admin.php?page=apg-general | 887 | 1.99 | 25.36 | 27.59 |
Information /wp-admin/admin.php?page=apg-information | 804 | 2.03 | 23.99 | 32.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
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 no errors were found, this is by no means 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 fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/arvand-post-grid/index.php
- 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function apg_post_header_options() in wp-content/plugins/arvand-post-grid/admin/forms/post-header.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function apg_category_options() in wp-content/plugins/arvand-post-grid/admin/forms/post-category.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function apg_excerpt_options() in wp-content/plugins/arvand-post-grid/admin/forms/post-excerpt.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function apg_avatar_options() in wp-content/plugins/arvand-post-grid/admin/forms/post-avatar.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function apg_post_image_options() in wp-content/plugins/arvand-post-grid/admin/forms/post-image.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/arvand-post-grid/admin/options-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/arvand-post-grid/includes/admin/menu-page.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function apg_pagination_options() in wp-content/plugins/arvand-post-grid/admin/forms/pagination.php:100
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/arvand-post-grid/admin/information-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function apg_footer_options() in wp-content/plugins/arvand-post-grid/admin/forms/post-footer.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (The first screenshot of the posts), #2 (The second screenshot of the posts), #3 (Screenshot of WordPress panel settings)
arvand-post-grid/arvand-post-grid.php 92% from 13 tests
"Arvand Post Grid" version 1.0'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:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin2,627 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 463 | 58 | 2,617 |
CSS | 2 | 1 | 6 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 1.73MB with 1.22MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 883.01KB | 266.33KB | ▼ 69.84% |
screenshot-1.png | 892.21KB | 259.08KB | ▼ 70.96% |