68% peoplepress

Code Review | PeoplePress

WordPress plugin PeoplePress scored 68% from 54 tests.

About plugin

  • Plugin page: peoplepress
  • Plugin version: 0.0.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2
  • WordPress version: 5.8.1
  • First release: Feb 16, 2020
  • Latest release: Feb 16, 2020
  • Number of updates: 3
  • Update frequency: every 75.4 days
  • Top authors: peoplepress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 234 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲1.45MB] [CPU: ▼129.68ms] Passed 4 tests

A check of server-side resources used by PeoplePress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.25 ▲1.4248.41 ▲16.36
Dashboard /wp-admin4.51 ▲1.4659.45 ▲16.83
Posts /wp-admin/edit.php4.58 ▲1.4757.80 ▲11.75
Add New Post /wp-admin/post-new.php7.06 ▲1.63116.56 ▼557.57
Media Library /wp-admin/upload.php4.46 ▲1.4646.32 ▲10.73

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 213 new files
Database: 1 new table, 2 new options
New tables
wp_pp_user_account_meta
New WordPress options
pp_flush_rewrite
pp-settings

Browser metrics Passed 4 tests

Checking browser requirements for PeoplePress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,848 ▲25216.27 ▲0.8219.70 ▲10.7969.62 ▲17.54
Dashboard /wp-admin2,990 ▲595.95 ▲0.03135.64 ▼10.58112.86 ▼4.56
Posts /wp-admin/edit.php2,762 ▲232.69 ▲0.0068.51 ▼8.0893.35 ▼0.62
Add New Post /wp-admin/post-new.php1,516 ▼16718.71 ▼0.07368.75 ▼11.39118.83 ▲0.13
Media Library /wp-admin/upload.php1,830 ▲205.00 ▲0.00162.36 ▲9.70126.13 ▲8.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_pp_user_account_meta
  • Zombie WordPress options were found after uninstall: 2 options
    • pp-settings
    • pp_flush_rewrite

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/peoplepress/templates/peoplepress/default/group/single/members.php
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/peoplepress/templates/peoplepress/default/user/account/resend-activation.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function peoplepress() in wp-content/plugins/peoplepress/templates/peoplepress/default/group/single/manage/edit-photo.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/peoplepress/templates/peoplepress/default/user/single/fallback-template.php:13
    • > PHP Fatal error
      Trait 'PeoplePress\\Traits\\PP_Bootable' not found in wp-content/plugins/peoplepress/src/modules/user/class-pp-user-admin-bar.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_content() in wp-content/plugins/peoplepress/templates/peoplepress/default/group/single/about.php:14
    • > PHP Fatal error
      Trait 'PeoplePress\\Traits\\PP_Bootable' not found in wp-content/plugins/peoplepress/src/modules/user/handlers/class-pp-page-action-handler.php on line 26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _x() in wp-content/plugins/peoplepress/src/core/http/validation/error-messages.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'PeoplePress\\Modules\\User\\PP_User_Query' not found in wp-content/plugins/peoplepress/templates/peoplepress/default/user/user-loop.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function peoplepress() in wp-content/plugins/peoplepress/templates/peoplepress/default/user/single/settings/general.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function pp_get_queried_user_id() in wp-content/plugins/peoplepress/templates/peoplepress/default/user/single/profile/profile.php:13

User-side errors Passed 1 test

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

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
1 plugin tags: user login

peoplepress/peoplepress.php 92% from 13 tests

"PeoplePress" version 0.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected16,021 lines of code in 206 files:
LanguageFilesBlank linesComment linesLines of code
PHP1894,20812,66211,518
CSS4598843,471
JavaScript121541151,021
XML14211

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.38
Average class complexity10.07
▷ Minimum class complexity1.00
▷ Maximum class complexity112.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces43
Interfaces9
Traits16
Classes122
▷ Abstract classes119.02%
▷ Concrete classes11190.98%
▷ Final classes00.00%
Methods1,037
▷ Static methods827.91%
▷ Public methods83680.62%
▷ Protected methods797.62%
▷ Private methods12211.76%
Functions141
▷ Named functions13696.45%
▷ Anonymous functions53.55%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
(invalid) templates/peoplepress/default/assets/avatar.png2.64KB0.00KB▼ 100.00%