89% podamibe-custom-user-gravatar

Code Review | Podamibe Custom User Gravatar

WordPress plugin Podamibe Custom User Gravatar scored89%from 54 tests.

About plugin

  • Plugin page: podamibe-custom-u...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Oct 17, 2016
  • Latest release: May 22, 2019
  • Number of updates: 14
  • Update frequency: every 68.3 days
  • Top authors: podamibe (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

6,000+ active /76,128 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.22ms] Passed 4 tests

An overview of server-side resources used by Podamibe Custom User Gravatar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.42 ▼8.44
Dashboard /wp-admin3.34 ▼0.0048.50 ▼9.62
Posts /wp-admin/edit.php3.40 ▲0.0447.14 ▼1.51
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.95 ▼20.10
Media Library /wp-admin/upload.php3.27 ▲0.0433.51 ▼2.72

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Podamibe Custom User Gravatar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▲0.091.91 ▲0.3441.27 ▲0.97
Dashboard /wp-admin2,198 ▲215.59 ▲0.0285.30 ▼6.4340.95 ▲2.20
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0339.08 ▼1.5933.42 ▼8.86
Add New Post /wp-admin/post-new.php1,526 ▼023.20 ▼0.05676.43 ▲16.8450.45 ▼4.98
Media Library /wp-admin/upload.php1,403 ▲34.12 ▼0.07104.39 ▼6.3941.93 ▼4.85

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: gravatar, change gravatar, podamibe, custom gravatar

podamibe-custom-user-gravatar/pod-custom-user-gravatar.php 62% from 13 tests

The primary PHP file in "Podamibe Custom User Gravatar" version 1.0.8 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.7.0" instead of "4.0")
  • Main file name: The principal plugin file should be the same as the plugin slug ("podamibe-custom-user-gravatar.php" instead of "pod-custom-user-gravatar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin170 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12868122
JavaScript17448

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin