61% peepso-core

Code Review | Community by PeepSo - Social Network, Membership, Registration, User Profiles

WordPress plugin Community by PeepSo - Social Network, Membership, Registration, User Profiles scored61%from 54 tests.

About plugin

  • Plugin page: peepso-core
  • Plugin version: 6.2.7.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4
  • WordPress version: 6.3.1
  • First release: Jul 11, 2015
  • Latest release: Nov 28, 2023
  • Number of updates: 688
  • Update frequency: every 4.5 days
  • Top authors: peepso (100%)

Code review

54 tests

User reviews

198 reviews

Install metrics

4,000+ active /412,140 total downloads

Benchmarks

Plugin footprint 63% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲5.51MB] [CPU: ▲36.52ms] 50% from 4 tests

An overview of server-side resources used by Community by PeepSo - Social Network, Membership, Registration, User Profiles
Please take the time to fix the following items
  • CPU: The total CPU usage must kept under 500.00ms (currently 722.06ms on /wp-admin/admin.php?page=peepso_config)
  • Extra RAM: The extra memory usage should kept under 5MB (currently 5.51MB on /wp-admin/admin.php?page=peepso_config)
PageMemory (MB)CPU Time (ms)
Home /8.08 ▲4.6276.60 ▲36.06
Dashboard /wp-admin9.20 ▲5.8689.24 ▲22.66
Posts /wp-admin/edit.php9.28 ▲5.92104.57 ▲55.54
Add New Post /wp-admin/post-new.php11.54 ▲5.65140.67 ▲34.44
Media Library /wp-admin/upload.php9.21 ▲5.9888.68 ▲52.92
Queues /wp-admin/admin.php?page=peepso-queue9.2191.88
Manage /wp-admin/admin.php?page=peepso-manage9.1993.10
Installer NEW! /wp-admin/admin.php?page=peepso-installer9.18570.92
Dashboard /wp-admin/admin.php?page=peepso9.211,219.10
Configuration /wp-admin/admin.php?page=peepso_config9.20722.06

Server storage [IO: ▲25.34MB] [DB: ▲0.17MB] 33% from 3 tests

How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
  • There were 2 files (1.57KB) illegally modified outside of "wp-content/plugins/peepso-core/" and "wp-content/uploads/"
    • (new file) wp-content/peepso/plugins/foundation/reactions-1701603311.css
    • (new file) wp-content/peepso/plugins/foundation/blogposts-1701603311.css
  • Filesystem usage must be lower than 25MB (currently using 25.34MB)
Filesystem: 1,646 new files
Database: 21 new tables, 39 new options
New tables
wp_peepso_brute_force_attempts_logs
wp_peepso_polls_user_answers
wp_peepso_reactions
wp_peepso_blocks
wp_peepso_notifications_queue_log
wp_peepso_user_followers
wp_peepso_activity_followers
wp_peepso_gdpr_request_data
wp_peepso_notifications
wp_peepso_api_rate_limit
...
New WordPress options
peepso_email_failed_login_attempts
peepso_email_user_approved
peepso_email_password_recover
peepso_email_tagged
peepso_email_share
peepso_config
widget_peepsowidgetlogin
peepso_install_date
can_compress_scripts
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Community by PeepSo - Social Network, Membership, Registration, User Profiles
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,463 ▲71617.94 ▲3.6055.20 ▲53.5331.71 ▼12.11
Dashboard /wp-admin2,541 ▲3746.21 ▲0.52111.06 ▲1.2496.90 ▲52.61
Posts /wp-admin/edit.php2,421 ▲3242.82 ▲0.8860.89 ▲20.3762.91 ▲24.59
Add New Post /wp-admin/post-new.php1,795 ▲26919.17 ▼4.03786.97 ▲127.8527.76 ▼32.63
Media Library /wp-admin/upload.php1,708 ▲3085.65 ▲1.37109.33 ▲12.83110.20 ▲66.07
Queues /wp-admin/admin.php?page=peepso-queue1,8814.1366.69117.19
Manage /wp-admin/admin.php?page=peepso-manage1,8824.4166.87119.56
Installer NEW! /wp-admin/admin.php?page=peepso-installer1,6013.2056.95114.73
Dashboard /wp-admin/admin.php?page=peepso1,8863.0071.06110.80
Configuration /wp-admin/admin.php?page=peepso_config2,6484.2762.48140.96

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure failed, leaving 21 tables in the database
    • wp_peepso_activity_ranking
    • wp_peepso_reactions
    • wp_peepso_api_rate_limit
    • wp_peepso_likes
    • wp_peepso_activities
    • wp_peepso_brute_force_attempts_logs
    • wp_peepso_gdpr_request_data
    • wp_peepso_saved_posts
    • wp_peepso_polls_user_answers
    • wp_peepso_notifications
    • ...
  • This plugin does not fully uninstall, leaving 39 options in the database
    • theysaidso_admin_options
    • peepso_config
    • peepso_install_date
    • widget_peepsowidgetlatestmembers
    • peepso_email_share
    • peepso_email_new_user_no_approval
    • peepso_email_new_user_registration
    • peepso_email_failed_login_attempts
    • widget_peepsowidgetonlinemembers
    • peepso_email_like_post
    • ...

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 26× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/peepso-core/templates/general/email-header.php
    • > /wp-content/plugins/peepso-core/templates/members/member-buttons.php
    • > /wp-content/plugins/peepso-core/templates/blogposts/wp-post-hashtags.php
    • > /wp-content/plugins/peepso-core/templates/activity/activity-placeholder.php
    • > /wp-content/plugins/peepso-core/templates/vip/hovercard.php
    • > /wp-content/plugins/peepso-core/templates/admin/admin_notice_help.php
    • > /wp-content/plugins/peepso-core/templates/admin/profiles_field_config_field_select.php
    • > /wp-content/plugins/peepso-core/templates/giphy/comment-addon.php
    • > /wp-content/plugins/peepso-core/templates/members/member-options.php
    • > /wp-content/plugins/peepso-core/templates/notifications/email-preview.php
  • 376× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PeepSo3_Search_Adapter_WP_Pages' not found in wp-content/plugins/peepso-core/3/classes/search/search_adapter_wp_posts.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/peepso-core/classes/widgets/widgetuserbar.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'PeepSoFieldTestAbstract' not found in wp-content/plugins/peepso-core/classes/fields/tests/fieldtestcountmin.php:3
    • > PHP Notice
      Undefined variable: field in wp-content/plugins/peepso-core/templates/admin/urlnofollow.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/peepso-core/templates/profile/dialog-profile-download-account-data.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/peepso-core/3/classes/compatibility/wordpress_query_caching.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'PeepSoInput' not found in wp-content/plugins/peepso-core/templates/general/external-link-warning.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/peepso-core/templates/post-backgrounds/admin_post_backgrounds.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'PeepSo' not found in wp-content/plugins/peepso-core/templates/activity/content-embed.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/peepso-core/templates/general/register-panel.php:1

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=peepso-installer
    • > Network (severe)
    peepsoajax/adminAddons.check_license - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=peepso
    • > Network (severe)
    peepsoajax/adminEngagementDashboard.get_graph_data - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #10, #11, #12, #13, #14, #2, #4, #6, #8, #9 in peepso-core/assets to your readme.txt
The official readme.txt is a good inspiration

peepso-core/peepso.php 92% from 13 tests

The principal PHP file in "Community by PeepSo - Social Network, Membership, Registration, User Profiles" v. 6.2.7.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("peepso-core.php" instead of "peepso.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
Everything looks great! No dangerous files found in this plugin242,155 lines of code in 1,333 files:
LanguageFilesBlank linesComment linesLines of code
PO File1943,49151,60488,983
PHP44213,2278,72750,482
Sass2488,2102,45633,665
JavaScript2505,4765,83628,136
CSS431,35760921,324
SVG327189819,447
JSON20085
Markdown111023
Ruby181210

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity24.64
▷ Minimum class complexity1.00
▷ Maximum class complexity891.00
Average method complexity4.13
▷ Minimum method complexity1.00
▷ Maximum method complexity79.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes255
▷ Abstract classes72.75%
▷ Concrete classes24897.25%
▷ Final classes00.00%
Methods1,816
▷ Static methods38921.42%
▷ Public methods1,52483.92%
▷ Protected methods894.90%
▷ Private methods20311.18%
Functions184
▷ Named functions137.07%
▷ Anonymous functions17192.93%
Constants138
▷ Global constants10.72%
▷ Class constants13799.28%
▷ Public constants137100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
186 PNG files occupy 2.66MB with 0.81MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/avatar/group-category.png19.25KB6.81KB▼ 64.62%
assets/images/powered-by-giphy.png1.53KB0.91KB▼ 40.83%
assets/images/cover/undefined-default.png56.20KB61.36KB0.00%
assets/images/share-icons/odnoklassniki.png0.17KB0.18KB0.00%
assets/aceadmin/css/img/alpha.png3.19KB1.68KB▼ 47.45%