Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-wiki-userprofile/wp-wiki-userprofile.php+355
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼58.21ms] Passed 4 tests
Server-side resources used by Wp Wiki Userprofile
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 5.38 ▼42.78 |
Dashboard /wp-admin | 2.12 ▼1.19 | 5.67 ▼46.46 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 6.22 ▼43.24 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 6.39 ▼100.34 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 5.81 ▼30.79 |
Wiki Userprofile /wp-admin/options-general.php?page=wiki-profile | 2.12 | 5.82 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
widget_wiki_profile_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
codecocktail_wiki_user_param |
widget_theysaidso_widget |
codecocktail_wiki_username |
Browser metrics Passed 4 tests
Checking browser requirements for Wp Wiki Userprofile
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲13 | 14.26 ▼0.09 | 1.79 ▼0.26 | 43.18 ▼1.11 |
Dashboard /wp-admin | 2,205 ▲28 | 5.64 ▼0.03 | 97.72 ▲4.05 | 43.35 ▲2.09 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.02 ▲0.03 | 37.06 ▼5.13 | 34.23 ▼6.49 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.09 ▼0.25 | 676.63 ▲59.30 | 49.93 ▼13.53 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.17 ▲0.00 | 97.89 ▼9.79 | 44.06 ▼1.09 |
Wiki Userprofile /wp-admin/options-general.php?page=wiki-profile | 879 | 2.12 | 23.55 | 28.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wp-wiki-userprofile/wp-wiki-userprofile.php+355
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_wiki_profile_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
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
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wiki-profile
- > Deprecated in wp-content/plugins/wp-wiki-userprofile/wp-wiki-userprofile.php+355
Function create_function() is deprecated
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-wiki-userprofile/wp-wiki-userprofile.php:38
- > 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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (screenshot-1.png) image required
wp-wiki-userprofile/wp-wiki-userprofile.php Passed 13 tests
"Wp Wiki Userprofile" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
74 characters long description:
This plugin is used to grab Wikipedia user contribution to wordpress blog.
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
No dangerous file extensions were detected206 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 97 | 75 | 206 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 13 | |
▷ Named functions | 13 | 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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 31.33KB | 10.78KB | ▼ 65.61% |