83% um-profile-form-tutorial

Code Review | UM Profile Form Tutorial

WordPress plugin UM Profile Form Tutorial scored83%from 54 tests.

About plugin

  • Plugin page: um-profile-form-t...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Aug 4, 2016
  • Latest release: Aug 14, 2016
  • Number of updates: 17
  • Update frequency: every 0.6 days
  • Top authors: borisv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,781 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.96ms] Passed 4 tests

Analyzing server-side resources used by UM Profile Form Tutorial
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.0247.65 ▼1.38
Dashboard /wp-admin3.59 ▲0.0256.01 ▲2.26
Posts /wp-admin/edit.php3.70 ▲0.0248.96 ▲2.34
Add New Post /wp-admin/post-new.php6.17 ▲0.0287.96 ▼7.07
Media Library /wp-admin/upload.php3.51 ▲0.0240.24 ▲3.33
UM Tutorial Form /wp-admin/options-general.php?page=um-profile-form-tutorial3.4835.40

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

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

Browser metrics Passed 4 tests

Checking browser requirements for UM Profile Form Tutorial
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲11713.44 ▼0.9410.59 ▲8.3943.59 ▼3.60
Dashboard /wp-admin2,199 ▲225.59 ▼0.0295.52 ▲2.3343.15 ▼2.10
Posts /wp-admin/edit.php2,104 ▲42.05 ▼0.0233.54 ▼3.4234.85 ▼3.34
Add New Post /wp-admin/post-new.php1,543 ▲1723.00 ▲5.48672.85 ▲50.9165.91 ▲19.77
Media Library /wp-admin/upload.php1,404 ▲44.25 ▲0.05102.10 ▼2.8443.12 ▼3.32
UM Tutorial Form /wp-admin/options-general.php?page=um-profile-form-tutorial9792.0226.0333.16

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/um-profile-form-tutorial/um-profile-form-tutorial.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Screenshot #2 (Screenshot-2.png, screenshot-3.png, screenshot-4.png, all show the pop ups for the tour.) image not found
The official readme.txt is a good inspiration

um-profile-form-tutorial/um-profile-form-tutorial.php 92% from 13 tests

The entry point to "UM Profile Form Tutorial" version 1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 453 characters long)

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
No dangerous file extensions were detected1,720 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23,0077741,616
PHP23712103
CSS136161

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.37MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/um-cover-default-icon.png8.85KB4.03KB▼ 54.43%
assets/screenshot-1.png222.73KB67.24KB▼ 69.81%
assets/screenshot-4.png9.65KB3.99KB▼ 58.68%
img/navy-blue-sprite.png13.74KB5.44KB▼ 60.45%
assets/screenshot-3.png38.21KB10.79KB▼ 71.76%