89% true-contributor-uploads-display-administrator

Code Review | True Contributor Uploads Display Administrator

WordPress plugin True Contributor Uploads Display Administrator scored89%from 54 tests.

About plugin

  • Plugin page: true-contributor-...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.2
  • WordPress version: 6.3.1
  • First release: May 14, 2021
  • Latest release: Oct 18, 2023
  • Number of updates: 9
  • Update frequency: every 98.7 days
  • Top authors: ryoraspp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /355 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.68ms] Passed 4 tests

This is a short check of server-side resources used by True Contributor Uploads Display Administrator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.18 ▼5.60
Dashboard /wp-admin3.31 ▲0.0143.82 ▼6.78
Posts /wp-admin/edit.php3.36 ▲0.0145.80 ▼8.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.04 ▲8.48
Media Library /wp-admin/upload.php3.23 ▲0.0031.58 ▼1.75

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for True Contributor Uploads Display Administrator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.001.68 ▲0.0438.64 ▼2.39
Dashboard /wp-admin2,195 ▲245.57 ▼0.0791.05 ▼1.9642.40 ▼7.12
Posts /wp-admin/edit.php2,097 ▼32.02 ▼0.0239.41 ▲2.4334.82 ▲1.46
Add New Post /wp-admin/post-new.php1,529 ▼723.18 ▲5.10594.75 ▼16.9554.36 ▼25.63
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.0394.19 ▼9.6840.48 ▼4.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Contributors: Plugin contributors field is missing
You can look at the official readme.txt

true-contributor-uploads-display-administrator/true-contributor-upload-display-administrator.php 92% from 13 tests

"True Contributor Uploads Display Administrator" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("true-contributor-uploads-display-administrator.php" instead of "true-contributor-upload-display-administrator.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
There were no executable files found in this plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161522

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.36
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 2.18MB with 1.39MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png1,352.63KB461.03KB▼ 65.92%
screenshot-2.png884.54KB338.44KB▼ 61.74%