10% wp-wiki-userprofile

Code Review | Wp Wiki Userprofile

WordPress plugin Wp Wiki Userprofile scored10%from 54 tests.

About plugin

  • Plugin page: wp-wiki-userprofile
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.0
  • WordPress version: 6.3.1
  • First release: May 30, 2012
  • Latest release: Oct 14, 2014
  • Number of updates: 17
  • Update frequency: every 51.0 days
  • Top authors: gchokeen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,482 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.375.38 ▼42.78
Dashboard /wp-admin2.12 ▼1.195.67 ▼46.46
Posts /wp-admin/edit.php2.12 ▼1.246.22 ▼43.24
Add New Post /wp-admin/post-new.php2.12 ▼3.776.39 ▼100.34
Media Library /wp-admin/upload.php2.12 ▼1.115.81 ▼30.79
Wiki Userprofile /wp-admin/options-general.php?page=wiki-profile2.125.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲1314.26 ▼0.091.79 ▼0.2643.18 ▼1.11
Dashboard /wp-admin2,205 ▲285.64 ▼0.0397.72 ▲4.0543.35 ▲2.09
Posts /wp-admin/edit.php2,108 ▲82.02 ▲0.0337.06 ▼5.1334.23 ▼6.49
Add New Post /wp-admin/post-new.php1,535 ▲723.09 ▼0.25676.63 ▲59.3049.93 ▼13.53
Media Library /wp-admin/upload.php1,413 ▲134.17 ▲0.0097.89 ▼9.7944.06 ▼1.09
Wiki Userprofile /wp-admin/options-general.php?page=wiki-profile8792.1223.5528.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

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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP19775206

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 code0.23
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-1.png31.33KB10.78KB▼ 65.61%