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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.25 ▲1.42 | 48.41 ▲16.36 |
Dashboard /wp-admin | 4.51 ▲1.46 | 59.45 ▲16.83 |
Posts /wp-admin/edit.php | 4.58 ▲1.47 | 57.80 ▲11.75 |
Add New Post /wp-admin/post-new.php | 7.06 ▲1.63 | 116.56 ▼557.57 |
Media Library /wp-admin/upload.php | 4.46 ▲1.46 | 46.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,848 ▲252 | 16.27 ▲0.82 | 19.70 ▲10.79 | 69.62 ▲17.54 |
Dashboard /wp-admin | 2,990 ▲59 | 5.95 ▲0.03 | 135.64 ▼10.58 | 112.86 ▼4.56 |
Posts /wp-admin/edit.php | 2,762 ▲23 | 2.69 ▲0.00 | 68.51 ▼8.08 | 93.35 ▼0.62 |
Add New Post /wp-admin/post-new.php | 1,516 ▼167 | 18.71 ▼0.07 | 368.75 ▼11.39 | 118.83 ▲0.13 |
Media Library /wp-admin/upload.php | 1,830 ▲20 | 5.00 ▲0.00 | 162.36 ▲9.70 | 126.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 189 | 4,208 | 12,662 | 11,518 |
CSS | 4 | 598 | 84 | 3,471 |
JavaScript | 12 | 154 | 115 | 1,021 |
XML | 1 | 4 | 2 | 11 |
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 code | 0.38 |
Average class complexity | 10.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 43 | |
Interfaces | 9 | |
Traits | 16 | |
Classes | 122 | |
▷ Abstract classes | 11 | 9.02% |
▷ Concrete classes | 111 | 90.98% |
▷ Final classes | 0 | 0.00% |
Methods | 1,037 | |
▷ Static methods | 82 | 7.91% |
▷ Public methods | 836 | 80.62% |
▷ Protected methods | 79 | 7.62% |
▷ Private methods | 122 | 11.76% |
Functions | 141 | |
▷ Named functions | 136 | 96.45% |
▷ Anonymous functions | 5 | 3.55% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) templates/peoplepress/default/assets/avatar.png | 2.64KB | 0.00KB | ▼ 100.00% |