Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼260.03ms] Passed 4 tests
A check of server-side resources used by Posts and products for users
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 41.19 ▲18.41 |
Dashboard /wp-admin | 3.09 ▲0.03 | 43.79 ▲7.55 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 43.92 ▲0.31 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 91.11 ▼1,048.70 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 36.95 ▲0.73 |
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu | 3.00 | 26.66 |
P&P for users /wp-admin/admin.php?page=wp-pp-for-users-settings | 3.00 | 25.08 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Posts and products for users
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲103 | 15.81 ▲0.29 | 9.18 ▼0.99 | 48.13 ▲1.92 |
Dashboard /wp-admin | 2,960 ▲110 | 5.92 ▲0.19 | 133.40 ▼0.83 | 138.90 ▲48.07 |
Posts /wp-admin/edit.php | 2,734 ▲31 | 2.69 ▼0.01 | 64.64 ▼1.38 | 93.40 ▲6.50 |
Add New Post /wp-admin/post-new.php | 1,677 ▼180 | 18.44 ▼0.74 | 388.00 ▲10.40 | 120.68 ▲12.29 |
Media Library /wp-admin/upload.php | 1,806 ▲31 | 5.02 ▲0.03 | 153.34 ▲1.63 | 117.70 ▲5.15 |
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu | 1,040 | 2.09 | 56.75 | 63.08 |
P&P for users /wp-admin/admin.php?page=wp-pp-for-users-settings | 1,104 | 2.09 | 56.78 | 71.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
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 | 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-posts-for-users/wp-posts-for-users.php
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 90% from 29 tests
readme.txt 88% 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:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
- Requires php: The plugin version is formatted incorrectly
wp-posts-for-users/wp-posts-for-users.php 92% from 13 tests
The main PHP script in "Posts and products for users" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 246 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected147 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 30 | 28 | 138 |
CSS | 3 | 1 | 3 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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 |
img/default.png | 4.15KB | 2.12KB | ▼ 48.92% |