Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.39MB] [CPU: ▼0.72ms] Passed 4 tests
A check of server-side resources used by Social Feed Gallery Portfolio
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.39 | 37.50 ▲0.67 |
Dashboard /wp-admin | 3.70 ▲0.35 | 47.89 ▼8.40 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 50.89 ▲2.23 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 95.18 ▲9.43 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 37.98 ▲2.64 |
Galleries /wp-admin/edit.php?post_type=igp_wp | 3.67 | 37.79 |
Add New /wp-admin/post-new.php?post_type=igp_wp | 3.71 | 50.59 |
Server storage [IO: ▲3.80MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 125 new files
Database: no new tables, 9 new options
New WordPress options |
---|
portfolio-wp-type |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
portfolio-wp-installDate |
widget_recent-comments |
can_compress_scripts |
portfolio-wp-v |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Social Feed Gallery Portfolio
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,007 ▲272 | 13.69 ▼0.57 | 10.84 ▲8.99 | 42.61 ▼8.11 |
Dashboard /wp-admin | 2,241 ▲53 | 4.81 ▼0.30 | 112.37 ▲6.00 | 41.29 ▼6.12 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.00 ▼0.01 | 38.55 ▼3.99 | 34.68 ▼3.61 |
Add New Post /wp-admin/post-new.php | 1,562 ▲34 | 23.29 ▲5.00 | 655.20 ▲21.99 | 61.50 ▲6.95 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.22 ▲0.03 | 100.96 ▲3.13 | 45.16 ▲0.94 |
Galleries /wp-admin/edit.php?post_type=igp_wp | 1,097 | 1.95 | 30.54 | 30.37 |
Add New /wp-admin/post-new.php?post_type=igp_wp | 2,466 | 5.43 | 102.78 | 50.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- portfolio-wp-installDate
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- portfolio-wp-type
- theysaidso_admin_options
- portfolio-wp-v
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 23× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/social-feed-gallery-portfolio/instagram-gallery-portfolio.php:18
- > PHP Notice
Undefined variable: data in wp-content/plugins/social-feed-gallery-portfolio/includes/public/templates/portfolio-gallery.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function scrape_instagram() in wp-content/plugins/social-feed-gallery-portfolio/includes/public/templates/portfolio-gallery.php:11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/social-feed-gallery-portfolio/includes/public/templates/portfolio-gallery.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/social-feed-gallery-portfolio/includes/public/templates/portfolio-gallery.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/social-feed-gallery-portfolio/includes/admin/portfolio-wp-js-templates.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/social-feed-gallery-portfolio/includes/public/templates/portfolio-gallery.php on line 4
- > PHP Notice
Undefined variable: data in wp-content/plugins/social-feed-gallery-portfolio/includes/public/templates/portfolio-gallery.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'Portfolio_Template_Loader' not found in wp-content/plugins/social-feed-gallery-portfolio/includes/public/class-portfolio-shortcode.php:13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/social-feed-gallery-portfolio/includes/public/templates/portfolio-gallery.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid URI: "#"
social-feed-gallery-portfolio/instagram-gallery-portfolio.php 92% from 13 tests
Analyzing the main PHP file in "Social Feed Gallery Portfolio" version 1.3
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("social-feed-gallery-portfolio.php" instead of "instagram-gallery-portfolio.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin20,691 lines of code in 94 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 19 | 2,268 | 254 | 7,391 |
SVG | 6 | 0 | 13 | 5,587 |
PHP | 20 | 598 | 490 | 2,091 |
Sass | 16 | 43 | 34 | 1,903 |
LESS | 16 | 41 | 51 | 1,870 |
JavaScript | 17 | 657 | 388 | 1,849 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 23.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 4.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 9 | 15.52% |
▷ Public methods | 44 | 75.86% |
▷ Protected methods | 3 | 5.17% |
▷ Private methods | 11 | 18.97% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/close.png | 0.27KB | 0.29KB | 0.00% |
assets/images/prev.png | 1.33KB | 1.59KB | 0.00% |
assets/images/next.png | 1.32KB | 1.58KB | 0.00% |