10% microdata-about

Code Review | Microdata About

WordPress plugin Microdata About scored10%from 54 tests.

About plugin

  • Plugin page: microdata-about
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.1
  • WordPress version: 6.3.1
  • First release: Nov 18, 2014
  • Latest release: Mar 10, 2015
  • Number of updates: 18
  • Update frequency: every 6.2 days
  • Top authors: antsanchez (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,621 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/microdata-about/microdata-about.php+211
    Methods with the same name as their class will not be constructors in a future version of PHP; MDaddress has a deprecated constructor

Server metrics [RAM: ▼1.85MB] [CPU: ▼52.59ms] Passed 4 tests

Analyzing server-side resources used by Microdata About
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.334.64 ▼36.31
Dashboard /wp-admin2.16 ▼1.156.88 ▼43.04
Posts /wp-admin/edit.php2.16 ▼1.206.62 ▼40.78
Add New Post /wp-admin/post-new.php2.16 ▼3.736.08 ▼90.23
Media Library /wp-admin/upload.php2.16 ▼1.075.70 ▼29.28
Microdata About /wp-admin/plugins.php?page=customize-bc-microdata2.178.27

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Microdata About
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5114.58 ▲0.211.66 ▼0.1940.85 ▼3.07
Dashboard /wp-admin2,203 ▲185.84 ▼0.0596.13 ▼26.6737.80 ▼7.18
Posts /wp-admin/edit.php2,097 ▲82.24 ▲0.2333.15 ▼4.4029.70 ▼3.10
Add New Post /wp-admin/post-new.php1,515 ▼417.71 ▼5.83634.50 ▲29.7033.24 ▼25.32
Media Library /wp-admin/upload.php1,389 ▼24.28 ▲0.07122.96 ▲24.4346.36 ▲5.02
Microdata About /wp-admin/plugins.php?page=customize-bc-microdata8861.7624.2925.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/microdata-about/microdata-about.php+211
    Methods with the same name as their class will not be constructors in a future version of PHP; MDaddress has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_mdaddress
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/plugins.php?page=customize-bc-microdata
    • > Deprecated in wp-content/plugins/microdata-about/microdata-about.php+211
    Methods with the same name as their class will not be constructors in a future version of PHP; MDaddress has a deprecated constructor
    • > GET request to /wp-admin/plugins.php?page=customize-bc-microdata
    • > Deprecated in wp-content/plugins/microdata-about/microdata-about.php+255
    Function create_function() is deprecated
    • > GET request to /wp-admin/plugins.php?page=customize-bc-microdata
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in MDaddress is deprecated since version 4.3.0! Use __construct() instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/microdata-about/microdata-about.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/plugins.php?page=customize-bc-microdata
    • > Network (severe)
    wp-content/plugins/microdata-about/js/my-javascript.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
2 plugin tags: microdata, about

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

The entry point to "Microdata About" version 1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("microdata-about")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/microdata-about")

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
Everything looks great! No dangerous files found in this plugin429 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13823196
PO File26262170
CSS111363

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected