10% rich-meta-in-rdfa

Code Review | Rich Meta in RDFa

WordPress plugin Rich Meta in RDFa scored10%from 54 tests.

About plugin

  • Plugin page: rich-meta-in-rdfa
  • Plugin version: 1.2.6
  • PHP compatiblity: 5.6.35+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-5.8
  • WordPress version: 6.3.1
  • First release: Jul 24, 2018
  • Latest release: Sep 14, 2021
  • Number of updates: 13
  • Update frequency: every 88.3 days
  • Top authors: yoannspace (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /964 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/rich-meta-in-rdfa/rich-meta-in-rdfa.php+75
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.87MB] [CPU: ▼57.10ms] Passed 4 tests

A check of server-side resources used by Rich Meta in RDFa
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼1.345.78 ▼34.83
Dashboard /wp-admin2.14 ▼1.166.68 ▼48.12
Posts /wp-admin/edit.php2.14 ▼1.227.12 ▼46.18
Add New Post /wp-admin/post-new.php2.14 ▼3.756.74 ▼98.63
Media Library /wp-admin/upload.php2.14 ▼1.096.02 ▼35.47
RDFa /wp-admin/options-general.php?page=rich-meta-in-rdfa2.146.21

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Rich Meta in RDFa
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲11913.68 ▼0.915.24 ▲3.3338.66 ▼0.51
Dashboard /wp-admin2,229 ▲235.84 ▲0.94118.99 ▲13.0643.38 ▲0.39
Posts /wp-admin/edit.php2,108 ▲82.00 ▼0.0135.29 ▼0.3233.39 ▼1.42
Add New Post /wp-admin/post-new.php1,533 ▲217.63 ▼5.47694.00 ▼0.6658.18 ▼1.12
Media Library /wp-admin/upload.php1,405 ▲54.23 ▼0.0298.57 ▼4.6642.74 ▼3.93
RDFa /wp-admin/options-general.php?page=rich-meta-in-rdfa8562.0223.1331.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/rich-meta-in-rdfa/rich-meta-in-rdfa.php+75
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=rich-meta-in-rdfa
    • > Notice in wp-content/plugins/rich-meta-in-rdfa/rich-meta-in-rdfa.php+75
    Trying to access array offset on value of type bool

SRP 0% 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 fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/rich-meta-in-rdfa/tests/bootstrap.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/rich-meta-in-rdfa/admin/partials/rich-meta-in-rdfa-admin-display.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/rich-meta-in-rdfa/tests/test-class-rich-meta-in-rdfa-public.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rich-meta-in-rdfa/public/class-rich-meta-in-rdfa-widget.php:3

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Donate link: Invalid url: ""
The official readme.txt is a good inspiration

rich-meta-in-rdfa/rich-meta-in-rdfa.php 92% from 13 tests

The primary PHP file in "Rich Meta in RDFa" version 1.2.6 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

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
No dangerous file extensions were detected681 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP1367586418
Bourne Shell12111120
YAML17058
Markdown217053
XML24226
JavaScript2004
CSS1002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.44
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.51
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods3888.37%
▷ Protected methods00.00%
▷ Private methods511.63%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin