89% organic-profile-block

Code Review | Organic Profile Block

WordPress plugin Organic Profile Block scored89%from 54 tests.

About plugin

  • Plugin page: organic-profile-b...
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Jan 13, 2018
  • Latest release: Jul 8, 2021
  • Number of updates: 22
  • Update frequency: every 58.0 days
  • Top authors: organicthemes (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

3,000+ active /51,863 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▲0.63ms] Passed 4 tests

Server-side resources used by Organic Profile Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0444.00 ▲1.51
Dashboard /wp-admin3.35 ▲0.0450.15 ▲6.29
Posts /wp-admin/edit.php3.41 ▲0.0549.10 ▼1.00
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.67 ▲5.05
Media Library /wp-admin/upload.php3.28 ▲0.0538.49 ▼3.04

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Organic Profile Block
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,109 ▲34823.98 ▲9.4447.17 ▲45.6043.02 ▲2.80
Dashboard /wp-admin2,293 ▲11210.64 ▲4.94115.18 ▲17.0341.03 ▼2.77
Posts /wp-admin/edit.php2,231 ▲1289.47 ▲7.4590.46 ▲47.8535.60 ▼1.39
Add New Post /wp-admin/post-new.php6,215 ▲4,67218.80 ▼4.33718.87 ▲25.8335.57 ▼17.79
Media Library /wp-admin/upload.php1,521 ▲12111.05 ▲6.87143.87 ▲32.7242.39 ▼3.62

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
You can take inspiration from this readme.txt

organic-profile-block/organic-profile-block.php 85% from 13 tests

The main file in "Organic Profile Block" v. 1.5.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.9" instead of "5.0")
  • Description: Keep the plugin description shorter than 140 characters (currently 230 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
Everything looks great! No dangerous files found in this plugin5,595 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS36212,468
JavaScript21411330
PHP337105126

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected