78% paragon-profile

Code Review | Paragon Profile

WordPress plugin Paragon Profile scored78%from 54 tests.

About plugin

  • Plugin page: paragon-profile
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 7, 2016
  • Latest release: Mar 21, 2016
  • Number of updates: 4
  • Update frequency: every 3.5 days
  • Top authors: De paragon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,018 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼6.73ms] Passed 4 tests

Server-side resources used by Paragon Profile
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1438.76 ▼8.72
Dashboard /wp-admin3.51 ▲0.1651.42 ▼12.13
Posts /wp-admin/edit.php3.63 ▲0.2650.26 ▼1.34
Add New Post /wp-admin/post-new.php6.11 ▲0.2296.60 ▼4.74
Media Library /wp-admin/upload.php3.43 ▲0.2041.64 ▲4.78
Paragon Profile Settings /wp-admin/options-general.php?page=pp_settings_option3.4240.72

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 79 new files
Database: no new tables, 12 new options
New WordPress options
pp_ppcontact
pp_formtoken
widget_recent-comments
db_upgraded
pp_ppregister
theysaidso_admin_options
pp_pplogin
widget_recent-posts
pp_pppasswordrecovery
pp_ppprofile
...

Browser metrics Passed 4 tests

Paragon Profile: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,724 ▼2213.50 ▼0.859.70 ▲8.0151.01 ▲10.09
Dashboard /wp-admin2,208 ▲285.63 ▲0.0185.20 ▲1.2739.15 ▼0.80
Posts /wp-admin/edit.php2,119 ▲192.20 ▲0.2633.64 ▼1.9935.89 ▲0.29
Add New Post /wp-admin/post-new.php1,544 ▲1823.77 ▲0.22617.57 ▼98.5850.49 ▼0.82
Media Library /wp-admin/upload.php1,422 ▲224.23 ▲0.1499.52 ▼18.3248.46 ▲1.80
Paragon Profile Settings /wp-admin/options-general.php?page=pp_settings_option1,4092.0940.5255.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 12 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • pp_formtoken
    • pp_ppregister
    • pp_ppcontact
    • pp_ppprofile
    • pp_pppasswordrecovery
    • pp_pplogin
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=pp_settings_option
    • > Warning in wp-content/plugins/paragon-profile/admin/PProfileSettingsPage.php+221
    Invalid argument supplied for foreach()

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=pp_settings_option
    • > Network (severe)
    wp-content/plugins/paragon-profile/css/paraadmincss2.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: password recovery, profile, secure forms, ajax form, registraion...

paragon-profile/paragon-profile.php 92% from 13 tests

The principal PHP file in "Paragon Profile" v. 1.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 152 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,525 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP16233821,416
CSS911534553
SVG100288
JavaScript56225268

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity11.69
▷ Minimum class complexity1.00
▷ Maximum class complexity70.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods53
▷ Static methods713.21%
▷ Public methods53100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
30 PNG files occupy 0.20MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%
css/images/ui-bg_diagonal-maze_40_000000_10x10.png0.23KB0.11KB▼ 52.72%
css/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%
css/images/ui-icons_b83400_256x240.png4.44KB4.17KB▼ 6.02%
js/images/ui-icons_b83400_256x240.png4.44KB4.17KB▼ 6.02%