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.45MB] [CPU: ▲4.30ms] Passed 4 tests
An overview of server-side resources used by Filterable Portfolio
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 42.41 ▼0.05 |
Dashboard /wp-admin | 3.78 ▲0.48 | 50.78 ▲3.49 |
Posts /wp-admin/edit.php | 3.84 ▲0.49 | 65.04 ▲19.94 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.59 | 98.42 ▲10.11 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 37.62 ▲3.65 |
Add New /wp-admin/post-new.php?post_type=portfolio | 6.47 | 90.41 |
Skills /wp-admin/edit-tags.php?taxonomy=portfolio_skill&post_type=portfolio | 3.64 | 41.99 |
All Portfolios /wp-admin/edit.php?post_type=portfolio | 3.76 | 41.36 |
Settings /wp-admin/edit.php?post_type=portfolio&page=fp-settings | 3.62 | 40.29 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=portfolio | 3.64 | 37.49 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_widget_filterable_portfolio |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Filterable Portfolio
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,999 ▲252 | 14.73 ▲0.22 | 5.01 ▲3.25 | 46.28 ▲1.94 |
Dashboard /wp-admin | 2,395 ▲215 | 6.50 ▲0.87 | 118.36 ▲24.97 | 43.34 ▼0.17 |
Posts /wp-admin/edit.php | 2,320 ▲213 | 3.48 ▲1.47 | 56.84 ▲0.23 | 36.93 ▼11.73 |
Add New Post /wp-admin/post-new.php | 6,421 ▲4,895 | 28.35 ▲5.08 | 962.69 ▲379.23 | 41.58 ▼5.14 |
Media Library /wp-admin/upload.php | 1,457 ▲54 | 4.31 ▲0.10 | 87.01 ▼12.36 | 43.52 ▼2.37 |
Add New /wp-admin/post-new.php?post_type=portfolio | 1,665 | 16.89 | 887.29 | 35.19 |
Skills /wp-admin/edit-tags.php?taxonomy=portfolio_skill&post_type=portfolio | 1,497 | 3.29 | 49.27 | 32.73 |
All Portfolios /wp-admin/edit.php?post_type=portfolio | 1,346 | 3.42 | 50.51 | 30.96 |
Settings /wp-admin/edit.php?post_type=portfolio&page=fp-settings | 1,393 | 3.91 | 53.24 | 34.35 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=portfolio | 1,494 | 3.29 | 44.75 | 30.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_widget_filterable_portfolio
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/filterable-portfolio/templates/shapla/archive-portfolio.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/filterable-portfolio/templates/archive-portfolio.php:10
- > PHP Fatal error
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 97% 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
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
filterable-portfolio/filterable-portfolio.php Passed 13 tests
Analyzing the main PHP file in "Filterable Portfolio" version 1.6.4
62 characters long description:
A WordPress plugin to display portfolio images with filtering.
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
No dangerous file extensions were detected2,714 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 539 | 1,156 | 2,708 |
JavaScript | 4 | 0 | 1 | 4 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 19.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 3.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 1 | 6.67% |
Methods | 140 | |
▷ Static methods | 34 | 24.29% |
▷ Public methods | 132 | 94.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 5.71% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 12 | |
▷ Global constants | 9 | 75.00% |
▷ Class constants | 3 | 25.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin