78% our-profiles

Code Review | Review Profile Links

WordPress plugin Review Profile Links scored78%from 54 tests.

About plugin

  • Plugin page: our-profiles
  • Plugin version: 2.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-5.8.2
  • WordPress version: 6.3.1
  • First release: Aug 7, 2013
  • Latest release: Nov 23, 2021
  • Number of updates: 19
  • Update frequency: every 160.0 days
  • Top authors: Dzynit (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /4,938 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▲0.60ms] Passed 4 tests

A check of server-side resources used by Review Profile Links
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.78 ▲0.79
Dashboard /wp-admin3.34 ▲0.0449.08 ▼1.67
Posts /wp-admin/edit.php3.39 ▲0.0453.23 ▲4.16
Add New Post /wp-admin/post-new.php5.92 ▲0.0496.11 ▲7.24
Media Library /wp-admin/upload.php3.26 ▲0.0436.60 ▼0.86

Server storage [IO: ▲0.88MB] [DB: ▲0.08MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 94 new files
Database: no new tables, 10 new options
New WordPress options
widget_theysaidso_widget
ourprofiles_options
theysaidso_admin_options
can_compress_scripts
widget_ourprofiles_widget
db_upgraded
widget_recent-posts
ourprofiles_links
widget_recent-comments
ourprofiles_services

Browser metrics Passed 4 tests

Review Profile Links: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲5714.72 ▲0.201.89 ▲0.2744.71 ▲2.60
Dashboard /wp-admin2,210 ▲365.68 ▲0.0283.01 ▼11.3177.57 ▲27.15
Posts /wp-admin/edit.php2,118 ▲151.96 ▼0.0739.52 ▼2.7937.60 ▲1.11
Add New Post /wp-admin/post-new.php1,564 ▲3618.32 ▼4.74686.24 ▲5.9853.07 ▼14.38
Media Library /wp-admin/upload.php1,418 ▲184.10 ▼0.11101.43 ▼4.4464.29 ▲20.24

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 does not fully uninstall, leaving 8 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_ourprofiles_widget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • ourprofiles_links

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/our-profiles/our-profiles.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/our-profiles/widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/our-profiles/seoauto-sidebar.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/our-profiles/admin.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/our-profiles/shortcode.php:67

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (What it looks like on a page or post), #2 (What it looks like in WP-admin)
The official readme.txt is a good inspiration

our-profiles/our-profiles.php 92% from 13 tests

This is the main PHP file of "Review Profile Links" version 2.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 188 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin585 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP68023549
XML10036

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
58 PNG files occupy 0.50MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/100x50/Facebook.png3.29KB2.12KB▼ 35.63%
images/150x75/Yelp.png16.20KB4.91KB▼ 69.67%
images/100x50/Twitter.png4.45KB2.56KB▼ 42.49%
images/100x50/Citysearch.png2.50KB2.31KB▼ 7.88%
images/100x50/Yelp.png11.47KB3.62KB▼ 68.46%