Benchmarks
Plugin footprint 83% from 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.02MB] [CPU: ▼4.47ms] Passed 4 tests
Analyzing server-side resources used by Portfolio Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 45.88 ▲1.44 |
Dashboard /wp-admin | 3.33 ▲0.03 | 52.05 ▼0.62 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 53.89 ▼2.06 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 90.10 ▼14.26 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.73 ▼0.92 |
Instagram Portfolio /wp-admin/options-general.php?page=instagram-portfolio | 3.23 | 33.06 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Portfolio Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.67 ▲0.32 | 1.85 ▲0.13 | 42.04 ▼2.12 |
Dashboard /wp-admin | 2,204 ▲24 | 5.61 ▼0.05 | 86.02 ▼6.74 | 39.58 ▼4.31 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 2.02 ▲0.03 | 40.64 ▼5.78 | 34.53 ▼0.66 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.17 ▼0.04 | 637.73 ▼36.70 | 52.05 ▼3.78 |
Media Library /wp-admin/upload.php | 1,409 ▲12 | 4.19 ▼0.01 | 96.70 ▼9.84 | 44.65 ▼7.06 |
Instagram Portfolio /wp-admin/options-general.php?page=instagram-portfolio | 952 | 2.12 | 22.85 | 28.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=instagram-portfolio
- > Notice in wp-content/plugins/portfolio-by-lisa-westlund/inc/options-page-wrapper.php+34
Undefined variable: wplw_instagram_access_token
- > GET request to /wp-admin/options-general.php?page=instagram-portfolio
- > Notice in wp-content/plugins/portfolio-by-lisa-westlund/inc/options-page-wrapper.php+37
Undefined variable: wplw_instagram_userID
- > GET request to /wp-admin/options-general.php?page=instagram-portfolio
- > Notice in wp-content/plugins/portfolio-by-lisa-westlund/inc/options-page-wrapper.php+40
Undefined variable: wplw_hashtag
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=instagram-portfolio
- > Notice in wp-content/plugins/portfolio-by-lisa-westlund/inc/options-page-wrapper.php+51
Trying to access array offset on value of type bool
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
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/portfolio-by-lisa-westlund/lisawestlund-instagram-portfolio.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/portfolio-by-lisa-westlund/inc/options-page-wrapper.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=instagram-portfolio
- > Network (severe)
wp-content/plugins/lisawestlund-instagram-portfolio/css/wplw_admin_style.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Donate link: Please fix this invalid URI: ""
- Requires at least: The plugin version is formatted incorrectly
portfolio-by-lisa-westlund/lisawestlund-instagram-portfolio.php 92% from 13 tests
"Portfolio Plugin" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("portfolio-by-lisa-westlund.php" instead of "lisawestlund-instagram-portfolio.php")
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
There were no executable files found in this plugin1,782 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 6 | 2 | 1,280 |
PHP | 2 | 80 | 23 | 223 |
CSS | 2 | 45 | 8 | 197 |
JavaScript | 1 | 34 | 12 | 82 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 9 | |
▷ Named functions | 9 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin