83% theone-expert-profile-embed

Code Review | TheONE Expert Profile Embed

WordPress plugin TheONE Expert Profile Embed scored83%from 54 tests.

About plugin

  • Plugin page: theone-expert-pro...
  • Plugin version: 1.0
  • PHP compatiblity: 5.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Nov 16, 2018
  • Latest release: Nov 16, 2018
  • Number of updates: 6
  • Update frequency: every 110.8 days
  • Top authors: morksinaanab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /877 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by TheONE Expert Profile Embed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.63 ▼1.39
Dashboard /wp-admin3.31 ▼0.0349.23 ▼15.09
Posts /wp-admin/edit.php3.37 ▲0.0144.61 ▼7.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.24 ▼13.05
Media Library /wp-admin/upload.php3.24 ▲0.0131.94 ▼3.11

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_to_theone_embed_widget

Browser metrics Passed 4 tests

A check of browser resources used by TheONE Expert Profile Embed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲11814.24 ▼0.1118.73 ▲16.7940.17 ▼1.61
Dashboard /wp-admin2,195 ▲205.59 ▼0.0684.87 ▼13.6838.86 ▼5.12
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0634.93 ▼1.5234.66 ▼3.31
Add New Post /wp-admin/post-new.php1,528 ▲223.02 ▼0.52693.29 ▼13.9860.36 ▲4.65
Media Library /wp-admin/upload.php1,400 ▼04.28 ▲0.0596.81 ▼18.1744.19 ▼1.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_to_theone_embed_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/theone-expert-profile-embed/theone-embed.php

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 86% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Donate link: Invalid URI found ("-")
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (A screenshot of 1 user profile.), #2 (A screenshot of many user profiles.)
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

theone-expert-profile-embed/theone-embed.php 92% from 13 tests

The principal PHP file in "TheONE Expert Profile Embed" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("theone-expert-profile-embed.php" instead of "theone-embed.php")

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
No dangerous file extensions were detected98 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1243198

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin