84% solvease-collapsible-user-profile-list-display

Code Review | Collapsible User Profile Display

WordPress plugin Collapsible User Profile Display scored84%from 54 tests.

About plugin

  • Plugin page: solvease-collapsi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.4
  • WordPress version: 6.3.1
  • First release: Dec 13, 2015
  • Latest release: Dec 13, 2015
  • Number of updates: 11
  • Update frequency: N/A
  • Top authors: bappa_wordpress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /697 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▲1.11ms] Passed 4 tests

Analyzing server-side resources used by Collapsible User Profile Display
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0848.65 ▲7.82
Dashboard /wp-admin3.42 ▲0.1252.57 ▼2.54
Posts /wp-admin/edit.php3.47 ▲0.1254.73 ▲5.31
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.16 ▼6.14
Media Library /wp-admin/upload.php3.26 ▲0.0342.62 ▲8.66
CP User Profile /wp-admin/options-general.php?page=settings_api_test3.2635.53

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
cp_basics
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Collapsible User Profile Display
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,324 ▲56316.29 ▲1.9524.70 ▲23.0459.36 ▲17.57
Dashboard /wp-admin2,352 ▲1756.31 ▲0.79103.77 ▲12.1043.41 ▲3.68
Posts /wp-admin/edit.php2,286 ▲1863.55 ▲1.5655.37 ▲18.3835.51 ▼4.30
Add New Post /wp-admin/post-new.php1,552 ▲2623.38 ▲0.20652.60 ▼22.8336.29 ▼12.27
Media Library /wp-admin/upload.php1,417 ▲144.39 ▲0.1283.70 ▼29.8844.99 ▼3.01
CP User Profile /wp-admin/options-general.php?page=settings_api_test1,0383.5046.1228.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • cp_basics
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Please fix the following
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/solvease-collapsible-user-profile-list-display/class.settings-api.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/solvease-collapsible-user-profile-list-display/html/image_uploading_field.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/solvease-collapsible-user-profile-list-display/html/custom_user_field.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_users() in wp-content/plugins/solvease-collapsible-user-profile-list-display/template/subscribers_template_1.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_users() in wp-content/plugins/solvease-collapsible-user-profile-list-display/template/subscribers_template_2.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

solvease-collapsible-user-profile-list-display/cp_user_profile.php 92% from 13 tests

Analyzing the main PHP file in "Collapsible User Profile Display" version 1.0
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("solvease-collapsible-user-profile-list-display.php" instead of "cp_user_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
Good job! No executable or dangerous file extensions detected9,571 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
CSS57226,789
JavaScript45902081,611
PHP7204405942
SVG100229

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity17.33
▷ Minimum class complexity3.00
▷ Maximum class complexity43.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin