84% wp-microdata

Code Review | WP Microdata

WordPress plugin WP Microdata scored84%from 54 tests.

About plugin

  • Plugin page: wp-microdata
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.2
  • WordPress version: 6.3.1
  • First release: Mar 24, 2015
  • Latest release: Mar 24, 2015
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: tormorten (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,439 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.26ms] Passed 4 tests

An overview of server-side resources used by WP Microdata
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.53 ▼1.63
Dashboard /wp-admin3.33 ▲0.0347.55 ▼3.95
Posts /wp-admin/edit.php3.38 ▲0.0244.41 ▼5.96
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.47 ▼9.48
Media Library /wp-admin/upload.php3.26 ▲0.0235.37 ▲2.58

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Microdata
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.441.87 ▲0.2543.57 ▲3.48
Dashboard /wp-admin2,209 ▲184.88 ▼1.01105.56 ▲6.4143.62 ▼1.05
Posts /wp-admin/edit.php2,086 ▼62.12 ▲0.0233.46 ▼7.6634.32 ▼4.46
Add New Post /wp-admin/post-new.php1,533 ▲523.15 ▲4.79599.71 ▼35.1451.35 ▼4.77
Media Library /wp-admin/upload.php1,388 ▼34.27 ▲0.0292.45 ▼7.8640.74 ▲0.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-microdata/wp-microdata.php:203

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: itemprop, microdata, itemscope, html microdata, scope...

wp-microdata/wp-microdata.php 85% from 13 tests

The primary PHP file in "WP Microdata" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("lang/")
  • Domain Path: The domain path must begin with a forward slash character ("/lang/")

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
Success! There were no dangerous files found in this plugin251 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP29217487
JavaScript111082
PO File2202082

PHP code Passed 2 tests

Analyzing 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.18
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods990.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin