78% fm-debug-meta-data

Code Review | Debug User/Post/Options Meta Data

WordPress plugin Debug User/Post/Options Meta Data scored 78% from 54 tests.

About plugin

  • Plugin page: fm-debug-meta-data
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5
  • WordPress version: 6.3.1
  • First release: Aug 29, 2016
  • Latest release: Aug 27, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: franmc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 795 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Debug User/Post/Options Meta Data
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.36 ▼5.33
Dashboard /wp-admin3.33 ▲0.0350.93 ▲1.52
Posts /wp-admin/edit.php3.39 ▲0.0350.90 ▲1.60
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.11 ▼10.07
Media Library /wp-admin/upload.php3.26 ▲0.0236.10 ▲2.61
FM Debug Meta Data /wp-admin/tools.php?page=Fm_debug_meta_data3.2532.96

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Debug User/Post/Options Meta Data: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.21 ▼1.571.62 ▼0.3238.49 ▼12.32
Dashboard /wp-admin2,218 ▲364.89 ▼0.14114.50 ▲5.3744.42 ▲4.34
Posts /wp-admin/edit.php2,101 ▲122.06 ▲0.0639.84 ▲0.8734.69 ▼0.83
Add New Post /wp-admin/post-new.php1,525 ▼823.35 ▲2.33618.32 ▲19.7356.86 ▲10.08
Media Library /wp-admin/upload.php1,400 ▲124.29 ▲0.0799.24 ▼2.1643.37 ▼0.52
FM Debug Meta Data /wp-admin/tools.php?page=Fm_debug_meta_data1,0181.9638.1237.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/fm-debug-meta-data/view-debug-meta-data.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: user_select in wp-content/plugins/fm-debug-meta-data/view-debug-meta-data.php on line 20
    • > PHP Notice
      Undefined variable: post_select in wp-content/plugins/fm-debug-meta-data/view-debug-meta-data.php on line 71
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/fm-debug-meta-data/fm-debug-meta-data.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === fm-debug-meta-data === )
Please take inspiration from this readme.txt

fm-debug-meta-data/fm-debug-meta-data.php Passed 13 tests

The main PHP file in "Debug User/Post/Options Meta Data" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
112 characters long description:
Debug User/Post/Options Meta Data plugin lets administrators debug users and posts meta data in a friendly view.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected373 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP211237197
CSS2298132
JavaScript124544

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icons.png0.74KB0.78KB0.00%