10% oi-frontend-profile

Code Review | Oi Frontend Profile

WordPress plugin Oi Frontend Profile scored10%from 54 tests.

About plugin

  • Plugin page: oi-frontend-profile
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.1
  • WordPress version: 6.3.1
  • First release: Sep 23, 2014
  • Latest release: Jan 30, 2015
  • Number of updates: 7
  • Update frequency: every 19.2 days
  • Top authors: Sh14 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,659 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/oi-frontend-profile/oi-frontend-profile.php+177
    Undefined variable: alert_message

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.85ms] Passed 4 tests

A check of server-side resources used by Oi Frontend Profile
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.54 ▲4.63
Dashboard /wp-admin3.31 ▲0.0048.35 ▼3.86
Posts /wp-admin/edit.php3.36 ▲0.0047.38 ▼6.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.50 ▼11.90
Media Library /wp-admin/upload.php3.23 ▲0.0032.07 ▼5.49

Server storage [IO: ▲0.06MB] [DB: ▲0.31MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Oi Frontend Profile: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.30 ▼0.431.88 ▲0.2044.25 ▲3.57
Dashboard /wp-admin2,192 ▲125.73 ▲0.1089.92 ▼9.9740.62 ▼5.09
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0533.32 ▼2.8135.51 ▼0.20
Add New Post /wp-admin/post-new.php1,526 ▼023.22 ▲0.12663.00 ▼15.8251.08 ▲0.15
Media Library /wp-admin/upload.php1,397 ▼64.23 ▲0.0697.39 ▼3.1143.08 ▼0.69

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% 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 0% from 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
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/oi-frontend-profile/oi-frontend-profile.php
    • > /wp-content/plugins/oi-frontend-profile/oi-nput.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: alert_message in wp-content/plugins/oi-frontend-profile/oi-frontend-profile.php on line 177
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/oi-frontend-profile/inc/options.php on line 139
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/oi-frontend-profile/oi-frontend-profile.php:183

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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:
  • Screenshots: Screenshot #1 (Profile page on a frontend, TwentyTwelve theme.) image not found
You can look at the official readme.txt

oi-frontend-profile/oi-frontend-profile.php Passed 13 tests

"Oi Frontend Profile" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
127 characters long description:
Plugin creates frontend profile page and redirects users from wp-admin/profile.php to this page. Form looks in Bootstrap style.

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 plugin481 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34418310
PO File1356889
CSS17082

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.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
1 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png27.29KB14.27KB▼ 47.72%