Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼12.11ms] Passed 4 tests
This is a short check of server-side resources used by Custom Portfolio With Filtering
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 42.04 ▲1.34 |
Dashboard /wp-admin | 3.36 ▲0.01 | 45.16 ▼16.47 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 46.07 ▼8.84 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 80.10 ▼24.45 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 37.09 ▲2.73 |
Tags /wp-admin/edit-tags.php?taxonomy=tagportfolio&post_type=portfolio | 3.28 | 31.91 |
Portfolio /wp-admin/edit.php?post_type=portfolio | 3.33 | 45.03 |
Add New /wp-admin/post-new.php?post_type=portfolio | 3.43 | 53.06 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Custom Portfolio With Filtering: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲178 | 13.44 ▼1.09 | 7.98 ▲6.42 | 40.91 ▲1.04 |
Dashboard /wp-admin | 2,224 ▲50 | 5.59 ▲0.02 | 91.23 ▲5.81 | 38.82 ▼4.06 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.03 ▲0.05 | 39.85 ▲6.12 | 37.50 ▼0.05 |
Add New Post /wp-admin/post-new.php | 1,561 ▲30 | 23.04 ▼0.27 | 644.35 ▼16.96 | 56.71 ▲6.37 |
Media Library /wp-admin/upload.php | 1,429 ▲32 | 4.33 ▲0.17 | 99.60 ▼5.96 | 42.82 ▼3.94 |
Tags /wp-admin/edit-tags.php?taxonomy=tagportfolio&post_type=portfolio | 1,306 | 2.14 | 27.47 | 29.43 |
Portfolio /wp-admin/edit.php?post_type=portfolio | 1,147 | 1.93 | 29.86 | 32.09 |
Add New /wp-admin/post-new.php?post_type=portfolio | 2,617 | 7.67 | 170.91 | 63.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% 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 50% 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 items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/custom-portfolio-with-filtering/custom-portfolio-with-filter.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% 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:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== custom-portfolio-with-filtering ===
)
custom-portfolio-with-filtering/custom-portfolio-with-filter.php 85% from 13 tests
"Custom Portfolio With Filtering" version 1.0.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 is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-portfolio-with-filtering.php" instead of "custom-portfolio-with-filter.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
Everything looks great! No dangerous files found in this plugin295 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 39 | 22 | 143 |
CSS | 1 | 16 | 6 | 96 |
JavaScript | 1 | 13 | 10 | 56 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 6.89KB | 6.21KB | ▼ 9.82% |