84% puredevs-any-meta-inspector

Code Review | PureDevs Any Meta Inspector

WordPress plugin PureDevs Any Meta Inspector scored 84% from 54 tests.

About plugin

  • Plugin page: puredevs-any-meta...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Oct 7, 2022
  • Latest release: Aug 29, 2023
  • Number of updates: 6
  • Update frequency: every 55.3 days
  • Top authors: puredevs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 531 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.28ms] Passed 4 tests

Server-side resources used by PureDevs Any Meta Inspector
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.27 ▼5.55
Dashboard /wp-admin3.37 ▲0.0652.70 ▼1.36
Posts /wp-admin/edit.php3.48 ▲0.1352.96 ▼4.01
Add New Post /wp-admin/post-new.php5.97 ▲0.0897.38 ▲3.30
Media Library /wp-admin/upload.php3.29 ▲0.0639.66 ▲1.79

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

PureDevs Any Meta Inspector: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1513.70 ▼1.031.68 ▼0.6142.56 ▼11.11
Dashboard /wp-admin2,210 ▲74.87 ▼0.90107.61 ▲4.1740.08 ▲0.60
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0441.29 ▲0.1634.68 ▼0.13
Add New Post /wp-admin/post-new.php1,518 ▲417.71 ▲0.24723.36 ▲20.9356.52 ▼3.02
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.0297.43 ▲0.5741.60 ▼2.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/puredevs-any-meta-inspector/admin/partials/puredevs-any-meta-inspector-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
6 plugin tags: category metadata, user metadata, post metadata, metabox, metadata...

puredevs-any-meta-inspector/puredevs-any-meta-inspector.php 92% from 13 tests

"PureDevs Any Meta Inspector" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 192 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin308 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7169405295
CSS10410
JavaScript12273

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.26
Average class complexity9.25
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2385.19%
▷ Protected methods00.00%
▷ Private methods414.81%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected