84% post-meta-view-and-export

Code Review | Post Meta View and Export

WordPress plugin Post Meta View and Export scored 84% from 54 tests.

About plugin

  • Plugin page: post-meta-view-an...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.7.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2021
  • Latest release: Jul 10, 2021
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: kravco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 300 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.53ms] Passed 4 tests

A check of server-side resources used by Post Meta View and Export
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.59 ▼1.21
Dashboard /wp-admin3.31 ▲0.0046.93 ▲0.24
Posts /wp-admin/edit.php3.36 ▲0.0041.68 ▼2.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.70 ▲1.39
Media Library /wp-admin/upload.php3.23 ▲0.0035.45 ▲2.24

Server storage [IO: ▲0.01MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Post Meta View and Export
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.58 ▼1.151.58 ▼0.2139.34 ▼1.95
Dashboard /wp-admin2,209 ▲34.86 ▼1.05100.68 ▼3.6837.09 ▼2.18
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0436.42 ▲1.3533.18 ▲2.75
Add New Post /wp-admin/post-new.php6,489 ▲4,95620.41 ▼2.55932.00 ▲275.4665.54 ▲8.60
Media Library /wp-admin/upload.php1,388 ▲34.17 ▲0.0097.35 ▼4.8344.47 ▼1.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • 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 | 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 take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MatejKravjar\\Wordpress\\Plugins\\PostMetaViewAndExport\\add_query_arg() in wp-content/plugins/post-meta-view-and-export/templates/template-meta-box.php:62
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MatejKravjar\\Wordpress\\Plugins\\PostMetaViewAndExport\\add_action() in wp-content/plugins/post-meta-view-and-export/post-meta-view-and-export.php:54

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: post meta, tools, export

post-meta-view-and-export/post-meta-view-and-export.php Passed 13 tests

"Post Meta View and Export" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
Inspect post meta data and export it to share with third parties (available only to superadmins)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected175 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23155175

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions654.55%
▷ Anonymous functions545.45%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin