83% frontend-profile-genius

Code Review | Frontend Profile Genius

WordPress plugin Frontend Profile Genius scored83%from 54 tests.

About plugin

  • Plugin page: frontend-profile-...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.6-4.9.4
  • WordPress version: 6.3.1
  • First release: Oct 12, 2017
  • Latest release: Feb 21, 2018
  • Number of updates: 8
  • Update frequency: every 16.6 days
  • Top authors: mariondorsett (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /672 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
This plugin's installer ran successfully

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

A check of server-side resources used by Frontend Profile Genius
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.05 ▼0.08
Dashboard /wp-admin3.32 ▲0.0245.71 ▼3.98
Posts /wp-admin/edit.php3.43 ▲0.0848.12 ▼0.13
Add New Post /wp-admin/post-new.php5.92 ▲0.0492.04 ▼6.60
Media Library /wp-admin/upload.php3.24 ▲0.0133.80 ▲1.22

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Frontend Profile Genius
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲16913.60 ▼0.777.64 ▲6.0141.11 ▲0.31
Dashboard /wp-admin2,203 ▲155.81 ▼0.07100.65 ▼7.0640.91 ▼3.98
Posts /wp-admin/edit.php2,091 ▲22.02 ▼0.0335.01 ▼6.4133.51 ▼2.01
Add New Post /wp-admin/post-new.php1,532 ▼1023.21 ▲4.98585.31 ▼18.4661.13 ▼1.84
Media Library /wp-admin/upload.php1,390 ▼14.23 ▲0.04106.70 ▲4.0646.67 ▲3.34

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/frontend-profile-genius/ui/help/edit/page/shortcode.php:21

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The default profile form uses simple HTML markup, and inherits the CSS from your current theme.), #2 (You will see this warning if you've used the shortcode on a post type, other than page.), #3 (Look for the User icon in the Visual text editor to insert the shortcode into your page copy.), #4 (The Text editor also provides a convenient button to insert the shortcode into your page copy.), #5 (A user must actively acknowledge their intent to delete their account, and must provide the current password to do so.)
The official readme.txt is a good inspiration

frontend-profile-genius/index.php 85% from 13 tests

"Frontend Profile Genius" version 0.1'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: It is recommended to name the main PHP file as the plugin slug ("frontend-profile-genius.php" instead of "index.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 177 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected479 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP76366462
JavaScript21117

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity12.00
▷ Minimum class complexity2.00
▷ Maximum class complexity26.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods1856.25%
▷ Protected methods1031.25%
▷ Private methods412.50%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png19.54KB8.23KB▼ 57.87%
screenshot-4.png20.98KB9.68KB▼ 53.89%
screenshot-5.png12.57KB4.98KB▼ 60.40%
screenshot-1.png31.97KB11.83KB▼ 63.00%
screenshot-3.png35.88KB13.58KB▼ 62.15%