Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.70MB] [CPU: ▼50.21ms] Passed 4 tests
Server-side resources used by Full Width Responsive Portfolio
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.30 ▼1.17 | 8.84 ▼34.77 |
Dashboard /wp-admin | 2.31 ▼0.99 | 9.84 ▼42.71 |
Posts /wp-admin/edit.php | 2.31 ▼1.05 | 12.63 ▼37.42 |
Add New Post /wp-admin/post-new.php | 2.31 ▼3.58 | 11.50 ▼85.93 |
Media Library /wp-admin/upload.php | 2.31 ▼0.92 | 9.87 ▼27.56 |
Category /wp-admin/edit-tags.php?taxonomy=port_tags&post_type=portfolio | 2.31 | 12.78 |
All Items /wp-admin/edit.php?post_type=portfolio | 2.31 | 10.61 |
Add New /wp-admin/post-new.php?post_type=portfolio | 2.31 | 9.87 |
Server storage [IO: ▲1.78MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Full Width Responsive Portfolio: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲184 | 13.65 ▼0.71 | 12.22 ▲10.55 | 52.17 ▲4.57 |
Dashboard /wp-admin | 2,229 ▲52 | 5.62 ▲0.07 | 88.89 ▼13.11 | 39.84 ▼6.19 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.99 ▲0.01 | 40.58 ▲4.15 | 36.99 ▲2.18 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.00 ▼0.44 | 640.65 ▼71.37 | 63.25 ▲2.33 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.19 ▲0.01 | 104.42 ▼10.30 | 45.88 ▼5.06 |
Category /wp-admin/edit-tags.php?taxonomy=port_tags&post_type=portfolio | 1,305 | 2.12 | 26.24 | 30.06 |
All Items /wp-admin/edit.php?post_type=portfolio | 1,100 | 1.96 | 29.52 | 31.98 |
Add New /wp-admin/post-new.php?post_type=portfolio | 2,286 | 7.57 | 168.17 | 64.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
- > Warning in wp-content/plugins/full-width-responsive-portfolio/custom-data.php+33
Use of undefined constant url - assumed 'url' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=portfolio
- > Warning in wp-content/plugins/full-width-responsive-portfolio/custom-data.php+33
Use of undefined constant url - assumed 'url' (this will throw an Error in a future version of PHP)
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=portfolio
- > Warning in wp-content/plugins/full-width-responsive-portfolio/custom-data.php+33
A non-numeric value encountered
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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/full-width-responsive-portfolio/portfolio.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/full-width-responsive-portfolio/custom-data.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/full-width-responsive-portfolio/shortcode-data.php:81
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Portfolio Menu), #2 (Display Portfolio Using Shortcodes), #3 (See The Action In Front-End)
full-width-responsive-portfolio/portfolio.php 92% from 13 tests
"Full Width Responsive Portfolio" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("full-width-responsive-portfolio.php" instead of "portfolio.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected4,318 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 987 | 517 | 2,940 |
CSS | 4 | 161 | 48 | 1,189 |
PHP | 3 | 32 | 13 | 189 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
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 | 8 | |
▷ Named functions | 8 | 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
PNG files should be compressed to save space and minimize bandwidth usage
31 PNG files occupy 0.21MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/prettyPhoto/facebook/contentPatternBottom.png | 0.14KB | 0.11KB | ▼ 21.13% |
screenshot-2.png | 14.86KB | 8.47KB | ▼ 43.00% |
images/prettyPhoto/dark_square/btnPrevious.png | 1.41KB | 1.19KB | ▼ 15.74% |
images/prettyPhoto/dark_square/btnNext.png | 1.38KB | 1.14KB | ▼ 17.29% |
images/prettyPhoto/facebook/contentPatternTop.png | 0.14KB | 0.11KB | ▼ 21.13% |