83% wp-create-user-area

Code Review | WP create user area

WordPress plugin WP create user area scored83%from 54 tests.

About plugin

  • Plugin page: wp-create-user-area
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.0
  • WordPress version: 6.3.1
  • First release: Nov 4, 2014
  • Latest release: Nov 5, 2014
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: maffay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /970 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼0.29ms] Passed 4 tests

An overview of server-side resources used by WP create user area
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.18 ▼5.54
Dashboard /wp-admin3.37 ▲0.0647.35 ▼1.95
Posts /wp-admin/edit.php3.42 ▲0.0651.35 ▲9.31
Add New Post /wp-admin/post-new.php5.95 ▲0.0692.70 ▲3.42
Media Library /wp-admin/upload.php3.29 ▲0.0636.10 ▲2.92
WP User Area /wp-admin/users.php?page=ka_area_admin3.3130.53

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_ka_area_user
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WP create user area
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7213.20 ▼1.554.48 ▲2.6540.09 ▼7.79
Dashboard /wp-admin2,210 ▲194.85 ▼0.02110.28 ▲2.2641.03 ▼4.31
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0242.28 ▲5.8436.59 ▼0.84
Add New Post /wp-admin/post-new.php1,536 ▲223.36 ▲0.38685.80 ▲44.5057.03 ▲3.33
Media Library /wp-admin/upload.php1,386 ▼24.22 ▲0.0095.89 ▼14.7240.85 ▼3.48
WP User Area /wp-admin/users.php?page=ka_area_admin9362.0222.4921.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_ka_area_user
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/users.php?page=ka_area_admin
    • > Notice in wp-content/plugins/wp-create-user-area/index.php+244
    Trying to access array offset on value of type bool

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Plugins admin setting pages), #2 (For user profile create new area), #3 (Test widget for show user area single/author page)
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

wp-create-user-area/index.php 92% from 13 tests

"WP create user area" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-create-user-area.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected343 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP18070235
PO File296202108

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png57.02KB16.92KB▼ 70.32%
screenshot-3.png40.92KB13.72KB▼ 66.48%
screenshot-2.png87.03KB27.34KB▼ 68.58%