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
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▲2.38ms] Passed 4 tests
Server-side resources used by GRIT Portfolio
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 47.48 ▲11.26 |
Dashboard /wp-admin | 3.39 ▲0.09 | 53.44 ▲7.82 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 51.76 ▼3.82 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 88.57 ▲1.28 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.46 ▲4.22 |
Add GRIT Portfolio /wp-admin/post-new.php?post_type=grit-portfolio | 3.40 | 56.95 |
All GRIT Portfolio /wp-admin/edit.php?post_type=grit-portfolio | 3.34 | 40.52 |
Category /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=grit-portfolio | 3.31 | 36.38 |
GRIT Portfolio /wp-admin/options-general.php?page=grit-portfolio | 3.33 | 38.47 |
Server storage [IO: ▲2.57MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for GRIT Portfolio
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲233 | 14.28 ▼0.47 | 12.03 ▲10.22 | 46.41 ▲2.39 |
Dashboard /wp-admin | 2,236 ▲51 | 5.85 ▲0.99 | 98.76 ▼9.94 | 71.38 ▲27.71 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.01 ▼0.03 | 34.42 ▼0.84 | 34.87 ▼4.60 |
Add New Post /wp-admin/post-new.php | 1,551 ▲31 | 23.11 ▼0.24 | 753.56 ▲101.61 | 31.06 ▼44.32 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.19 ▼0.08 | 100.80 ▲3.92 | 84.15 ▲41.00 |
Add GRIT Portfolio /wp-admin/post-new.php?post_type=grit-portfolio | 1,787 | 3.53 | 61.58 | 91.43 |
All GRIT Portfolio /wp-admin/edit.php?post_type=grit-portfolio | 1,100 | 1.94 | 29.55 | 30.96 |
Category /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=grit-portfolio | 1,304 | 2.14 | 24.46 | 31.73 |
GRIT Portfolio /wp-admin/options-general.php?page=grit-portfolio | 952 | 2.07 | 22.72 | 33.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/grit-portfolio/public/partials/grit-portfolio-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/grit-portfolio/admin/partials/grit-portfolio-admin-display.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Donate link: Invalid URI ("paypal.me/rityunjay")
grit-portfolio/grit-portfolio.php Passed 13 tests
The main PHP script in "GRIT Portfolio" version 1.0.0 is automatically included on every request by WordPress
84 characters long description:
This plugin lets you add a portfolio in masonry,grid and slider view using shortcode
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin16,755 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 1,793 | 79 | 12,932 |
JavaScript | 9 | 42 | 106 | 1,755 |
SVG | 2 | 1 | 3 | 1,324 |
PHP | 12 | 186 | 582 | 735 |
HTML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 7.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 30 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.29% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin