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.04MB] [CPU: ▼4.03ms] Passed 4 tests
Analyzing server-side resources used by Show developer profile
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.41 ▼1.37 |
Dashboard /wp-admin | 3.35 ▲0.04 | 49.34 ▼7.15 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 50.29 ▼0.58 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 100.96 ▼6.40 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.45 ▼1.18 |
Show Developer Profile Plugin /wp-admin/options-general.php?page=show-developer-profile-plugin | 3.21 | 31.52 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_evandrosouza89_sdvp_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Show developer profile
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 14.77 ▲0.51 | 1.85 ▼0.11 | 47.98 ▲2.59 |
Dashboard /wp-admin | 2,213 ▲34 | 5.85 ▲0.98 | 101.04 ▼9.01 | 40.37 ▼3.62 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.02 | 36.70 ▼10.06 | 33.40 ▼5.29 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.07 ▲5.19 | 690.57 ▲0.94 | 68.16 ▲6.26 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.18 ▼0.05 | 104.56 ▼28.55 | 45.05 ▼2.04 |
Show Developer Profile Plugin /wp-admin/options-general.php?page=show-developer-profile-plugin | 778 | 2.05 | 26.77 | 29.96 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_evandrosouza89_sdvp_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=show-developer-profile-plugin
- > Notice in wp-content/plugins/show-git-developer-profile/show-developer-profile-settings.php+59
Trying to access array offset on value of type bool
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=show-developer-profile-plugin
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
Undefined offset: 0
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=show-developer-profile-plugin
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
Trying to get property 'guid' of non-object
- 12 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=show-developer-profile-plugin
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
Trying to get property 'ID' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=show-developer-profile-plugin
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
Trying to get property 'post_title' of non-object
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
Almost there! Just fix the following items
- 3× 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/show-git-developer-profile/show-developer-profile-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/show-git-developer-profile/show-developer-profile.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/show-git-developer-profile/show-developer-profile-settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: portfolio, developer, profile, github
show-git-developer-profile/show-developer-profile.php 92% from 13 tests
The main PHP script in "Show developer profile" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("show-git-developer-profile.php" instead of "show-developer-profile.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin203 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 37 | 29 | 160 |
CSS | 1 | 11 | 0 | 43 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG files were detected