68% profile-xtra

Code Review | Profile Xtra

WordPress plugin Profile Xtra scored68%from 54 tests.

About plugin

  • Plugin page: profile-xtra
  • Plugin version: 2.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.6
  • WordPress version: 6.3.1
  • First release: Oct 20, 2016
  • Latest release: Apr 8, 2018
  • Number of updates: 33
  • Update frequency: every 16.2 days
  • Top authors: ernestortiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,247 total downloads

Benchmarks

Plugin footprint 65% 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 gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼2.27ms] Passed 4 tests

Server-side resources used by Profile Xtra
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1036.33 ▼5.97
Dashboard /wp-admin3.45 ▲0.1452.25 ▲3.56
Posts /wp-admin/edit.php3.56 ▲0.2051.70 ▼0.69
Add New Post /wp-admin/post-new.php6.05 ▲0.1687.34 ▼5.98
Media Library /wp-admin/upload.php3.37 ▲0.1438.44 ▲4.63
Profile Xtra /wp-admin/options-general.php?page=profilextra3.3133.34

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Profile Xtra
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7113.27 ▼1.114.39 ▲2.2343.04 ▼1.93
Dashboard /wp-admin2,217 ▲265.04 ▲0.17111.93 ▲6.8838.76 ▼5.88
Posts /wp-admin/edit.php2,103 ▲142.06 ▲0.0437.33 ▼3.3733.16 ▼3.95
Add New Post /wp-admin/post-new.php1,533 ▼018.44 ▼5.02637.42 ▼38.7557.47 ▲1.16
Media Library /wp-admin/upload.php1,399 ▲114.29 ▲0.0894.31 ▼12.3242.85 ▼4.58
Profile Xtra /wp-admin/options-general.php?page=profilextra9991.7225.6731.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/profile-xtra/uninstall.php+7
    Trying to access array offset on value of type bool
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=profilextra
    • > Notice in wp-content/plugins/profile-xtra/optionspage.php+110
    Undefined index: use_names
    • > GET request to /wp-admin/options-general.php?page=profilextra
    • > Notice in wp-content/plugins/profile-xtra/optionspage.php+156
    Undefined index: alterauthor
    • > GET request to /wp-admin/options-general.php?page=profilextra
    • > Notice in wp-content/plugins/profile-xtra/optionspage.php+157
    Undefined index: multiauthor
    • > GET request to /wp-admin/options-general.php?page=profilextra
    • > Notice in wp-content/plugins/profile-xtra/optionspage.php+160
    Undefined index: m_posts
    • > GET request to /wp-admin/options-general.php?page=profilextra
    • > Notice in wp-content/plugins/profile-xtra/optionspage.php+162
    Undefined index: m_pages
    • > GET request to /wp-admin/options-general.php?page=profilextra
    • > Notice in wp-content/plugins/profile-xtra/optionspage.php+195
    Undefined index: on_uninstall

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
The following issues need your attention
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/profile-xtra/multiauthor.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/profile-xtra/optionspage.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/profile-xtra/profilextra.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/profile-xtra/ajaxes.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/profile-xtra/shortcodes.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/profile-xtra/alterauthor.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: author image, profile, social links, alternative author, multiple authors

profile-xtra/profilextra.php 92% from 13 tests

The entry point to "Profile Xtra" version 2.2.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("profile-xtra.php" instead of "profilextra.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,042 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP758140837
JavaScript21120162
CSS26743

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions39
▷ Named functions39100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin