Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼136.58ms] Passed 4 tests
Analyzing server-side resources used by Simple Filterable Portfolio
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 36.39 ▲14.63 |
Dashboard /wp-admin | 3.13 ▲0.07 | 44.95 ▼2.34 |
Posts /wp-admin/edit.php | 3.21 ▲0.10 | 46.79 ▲9.70 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 89.73 ▼556.93 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 39.39 ▲3.24 |
Portfolio /wp-admin/edit.php?post_type=portfolio | 3.11 | 33.79 |
Add New /wp-admin/post-new.php?post_type=portfolio | 3.17 | 50.73 |
Filters /wp-admin/edit-tags.php?taxonomy=filters&post_type=portfolio | 3.07 | 33.48 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Filterable Portfolio
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,747 ▲151 | 15.96 ▲0.31 | 11.15 ▲0.95 | 44.54 ▼6.99 |
Dashboard /wp-admin | 3,007 ▲76 | 5.89 ▼0.20 | 144.58 ▲1.35 | 103.15 ▼9.45 |
Posts /wp-admin/edit.php | 2,779 ▲40 | 2.72 ▲0.01 | 66.35 ▼1.31 | 84.62 ▼4.67 |
Add New Post /wp-admin/post-new.php | 1,524 ▼91 | 18.81 ▼2.75 | 378.18 ▲90.60 | 109.67 ▲6.59 |
Media Library /wp-admin/upload.php | 1,847 ▲37 | 5.03 ▲0.01 | 152.92 ▼19.26 | 119.95 ▲6.85 |
Portfolio /wp-admin/edit.php?post_type=portfolio | 1,443 | 2.64 | 62.47 | 71.29 |
Add New /wp-admin/post-new.php?post_type=portfolio | 3,020 | 8.90 | 234.16 | 130.23 |
Filters /wp-admin/edit-tags.php?taxonomy=filters&post_type=portfolio | 1,779 | 2.41 | 63.77 | 76.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simple-filterable-portfolio/simple-filterable-portfolio.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-filterable-portfolio/inc/asrsfp-register-post-types.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #2, #3 in simple-filterable-portfolio/assets to your readme.txt
- Tags: You are using too many tags: 11 tag instead of maximum 10
simple-filterable-portfolio/simple-filterable-portfolio.php Passed 13 tests
"Simple Filterable Portfolio" version 2.0.15's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
88 characters long description:
Simple Plugin for creating a filterable portfolio gallery with MixitUp and Magnify Popup
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
There were no executable files found in this plugin2,115 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 469 | 348 | 1,343 |
CSS | 4 | 46 | 7 | 589 |
PHP | 2 | 23 | 35 | 183 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin