83% metabase-post-user-meta-editor

Code Review | Metabase - Post & User Meta Editor

WordPress plugin Metabase - Post & User Meta Editor scored 83% from 54 tests.

About plugin

  • Plugin page: metabase-post-use...
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jun 24, 2022
  • Latest release: May 5, 2023
  • Number of updates: 14
  • Update frequency: every 22.4 days
  • Top authors: davexpression (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 903 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.48ms] Passed 4 tests

An overview of server-side resources used by Metabase - Post & User Meta Editor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.52 ▼2.33
Dashboard /wp-admin3.32 ▲0.0243.01 ▼5.26
Posts /wp-admin/edit.php3.37 ▲0.0245.76 ▼2.60
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.44 ▼3.71
Media Library /wp-admin/upload.php3.24 ▲0.0234.79 ▲2.53

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

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

Browser metrics Passed 4 tests

Metabase - Post & User Meta Editor: 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 ▲2913.31 ▼1.071.76 ▼0.2445.28 ▼3.22
Dashboard /wp-admin2,206 ▲184.86 ▼0.0395.99 ▼20.3136.78 ▼7.54
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0538.55 ▲2.8737.27 ▲5.15
Add New Post /wp-admin/post-new.php6,588 ▲5,05420.07 ▼3.10877.59 ▲256.5752.17 ▼2.43
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.0093.07 ▼4.3441.91 ▼5.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 103× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/metabase-post-user-meta-editor/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/metabase-post-user-meta-editor/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/metabase-post-user-meta-editor/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/metabase-post-user-meta-editor/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/metabase-post-user-meta-editor/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/metabase-post-user-meta-editor/vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/metabase-post-user-meta-editor/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/metabase-post-user-meta-editor/vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/metabase-post-user-meta-editor/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/metabase-post-user-meta-editor/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt might help

metabase-post-user-meta-editor/metabase.php 85% from 13 tests

This is the main PHP file of "Metabase - Post & User Meta Editor" version 0.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("metabase-post-user-meta-editor.php" instead of "metabase.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin3,650 lines of code in 133 files:
LanguageFilesBlank linesComment linesLines of code
PHP1236551,1603,161
JSON300321
YAML3313123
Markdown142042
CSS1001
JavaScript1001
SVG1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity2.96
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes110
▷ Abstract classes10.91%
▷ Concrete classes10999.09%
▷ Final classes00.00%
Methods159
▷ Static methods1911.95%
▷ Public methods11169.81%
▷ Protected methods3421.38%
▷ Private methods148.81%
Functions15
▷ Named functions746.67%
▷ Anonymous functions853.33%
Constants12
▷ Global constants866.67%
▷ Class constants433.33%
▷ Public constants4100.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