93% wp-posts-for-users

Code Review | Posts and products for users

WordPress plugin Posts and products for users scored 93% from 53 tests.

About plugin

  • Plugin page: wp-posts-for-users
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.4-5.3.2
  • WordPress version: 5.8.1
  • First release: Feb 16, 2019
  • Latest release: May 13, 2020
  • Number of updates: 32
  • Update frequency: every 14.1 days
  • Top authors: desparza (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 474 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1441.19 ▲18.41
Dashboard /wp-admin3.09 ▲0.0343.79 ▲7.55
Posts /wp-admin/edit.php3.14 ▲0.0343.92 ▲0.31
Add New Post /wp-admin/post-new.php5.45 ▲0.0291.11 ▼1,048.70
Media Library /wp-admin/upload.php3.03 ▲0.0236.95 ▲0.73
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu3.0026.66
P&P for users /wp-admin/admin.php?page=wp-pp-for-users-settings3.0025.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲10315.81 ▲0.299.18 ▼0.9948.13 ▲1.92
Dashboard /wp-admin2,960 ▲1105.92 ▲0.19133.40 ▼0.83138.90 ▲48.07
Posts /wp-admin/edit.php2,734 ▲312.69 ▼0.0164.64 ▼1.3893.40 ▲6.50
Add New Post /wp-admin/post-new.php1,677 ▼18018.44 ▼0.74388.00 ▲10.40120.68 ▲12.29
Media Library /wp-admin/upload.php1,806 ▲315.02 ▲0.03153.34 ▲1.63117.70 ▲5.15
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu1,0402.0956.7563.08
P&P for users /wp-admin/admin.php?page=wp-pp-for-users-settings1,1042.0956.7871.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
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP23028138
CSS3139

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 code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
img/default.png4.15KB2.12KB▼ 48.92%