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.02MB] [CPU: ▼6.05ms] Passed 4 tests
Server-side resources used by Grider Portfolio
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.93 ▼3.85 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.52 ▼6.55 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.73 ▼3.15 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.42 ▼10.63 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.78 ▲2.79 |
Add New /wp-admin/post-new.php?post_type=gd_post_types | 3.37 | 47.74 |
All GridPortfolio /wp-admin/edit.php?post_type=gd_post_types | 3.29 | 36.35 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Grider Portfolio
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲187 | 13.79 ▼0.81 | 10.01 ▲8.07 | 55.39 ▲3.89 |
Dashboard /wp-admin | 2,227 ▲42 | 4.83 ▼0.98 | 105.66 ▲5.19 | 38.16 ▼3.54 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.04 ▼0.02 | 36.23 ▼4.68 | 32.43 ▼4.57 |
Add New Post /wp-admin/post-new.php | 1,537 ▲16 | 17.61 ▼5.66 | 689.57 ▲28.78 | 53.55 ▼7.70 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.22 ▲0.02 | 95.16 ▼7.63 | 41.98 ▼0.84 |
Add New /wp-admin/post-new.php?post_type=gd_post_types | 2,175 | 7.59 | 171.80 | 66.17 |
All GridPortfolio /wp-admin/edit.php?post_type=gd_post_types | 1,089 | 1.98 | 30.77 | 29.30 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/grider-portfolio/gd-pf-shortcode.php:50
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Displays a thumbnail grid view), #2 (Grid expanding preview), #3 (Next previous and close button on expanding image)
grider-portfolio/grid-portfolio.php 92% from 13 tests
This is the main PHP file of "Grider Portfolio" version 1.1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("grider-portfolio.php" instead of "grid-portfolio.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected304 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 38 | 44 | 161 |
CSS | 3 | 2 | 5 | 64 |
PHP | 5 | 56 | 27 | 62 |
SVG | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.26MB with 0.17MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 28.23KB | 12.29KB | ▼ 56.46% |
assets/icon-128x128.png | 6.47KB | 1.13KB | ▼ 82.56% |
screenshot-2.png | 118.04KB | 49.72KB | ▼ 57.88% |
screenshot-1.png | 118.04KB | 49.72KB | ▼ 57.88% |