84% wp-ucl-iris-embed

Code Review | UCL IRIS embed shortcode

WordPress plugin UCL IRIS embed shortcode scored 84% from 54 tests.

About plugin

  • Plugin page: wp-ucl-iris-embed
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.3
  • WordPress version: 6.3.1
  • First release: Jan 25, 2016
  • Latest release: Jan 25, 2016
  • Number of updates: 3
  • Update frequency: every 8.7 days
  • Top authors: tomalrussell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 504 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.11ms] Passed 4 tests

Server-side resources used by UCL IRIS embed shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.21 ▼7.29
Dashboard /wp-admin3.31 ▲0.0146.13 ▼4.88
Posts /wp-admin/edit.php3.36 ▲0.0146.99 ▼0.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.36 ▼9.28
Media Library /wp-admin/upload.php3.23 ▲0.0131.20 ▼2.97

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

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

Browser metrics Passed 4 tests

UCL IRIS embed shortcode: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.25 ▼1.164.68 ▲2.6943.21 ▼0.30
Dashboard /wp-admin2,206 ▲185.90 ▲0.11100.59 ▼16.5938.56 ▼11.51
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0040.29 ▲1.7233.77 ▼1.16
Add New Post /wp-admin/post-new.php1,514 ▼1917.60 ▼5.50629.16 ▼54.4654.93 ▼6.81
Media Library /wp-admin/upload.php1,385 ▼04.20 ▲0.0193.86 ▼15.9042.35 ▼0.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-ucl-iris-embed/wp-ucl-iris-embed.php:63

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: references, iris, rps, ucl, publications

wp-ucl-iris-embed/wp-ucl-iris-embed.php Passed 13 tests

"UCL IRIS embed shortcode" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
80 characters long description:
Include UCL Iris/RPS publication data with a shortcode: [ucl_iris upi="MBAUM76"]

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected27 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192727

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin