84% mhm-extend-postdata

Code Review | Extend Post Data

WordPress plugin Extend Post Data scored84%from 54 tests.

About plugin

  • Plugin page: mhm-extend-postdata
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.3.2
  • WordPress version: 6.3.1
  • First release: Aug 21, 2015
  • Latest release: Jan 6, 2020
  • Number of updates: 20
  • Update frequency: every 80.0 days
  • Top authors: markhowellsmead (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,134 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Extend Post Data
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.78 ▲3.37
Dashboard /wp-admin3.31 ▲0.0151.13 ▼1.80
Posts /wp-admin/edit.php3.36 ▲0.0151.58 ▼8.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.24 ▼12.81
Media Library /wp-admin/upload.php3.23 ▲0.0139.09 ▲2.25

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Extend Post Data
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.101.54 ▼0.0743.56 ▼0.48
Dashboard /wp-admin2,192 ▲215.55 ▼0.1091.37 ▼6.6040.60 ▼4.00
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0136.81 ▲0.6836.93 ▼1.38
Add New Post /wp-admin/post-new.php1,529 ▲122.98 ▼0.21706.96 ▲19.0854.05 ▼0.32
Media Library /wp-admin/upload.php1,400 ▼34.29 ▲0.11139.81 ▲31.2755.89 ▲8.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 add_action() in wp-content/plugins/mhm-extend-postdata/index.php:24

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

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: meta, metadata, postdata, extend

mhm-extend-postdata/index.php 92% from 13 tests

"Extend Post Data" version 1.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("mhm-extend-postdata.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15822

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.40
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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