90% entity-viewer

Code Review | Entity Viewer

WordPress plugin Entity Viewer scored90%from 54 tests.

About plugin

  • Plugin page: entity-viewer
  • Plugin version: 0.5.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.9
  • WordPress version: 6.3.1
  • First release: Jan 28, 2022
  • Latest release: Jan 29, 2022
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: versusbassz (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /509 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▼2.36ms] Passed 4 tests

A check of server-side resources used by Entity Viewer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1335.57 ▼6.24
Dashboard /wp-admin3.44 ▲0.1344.30 ▼5.30
Posts /wp-admin/edit.php3.55 ▲0.1949.90 ▲3.36
Add New Post /wp-admin/post-new.php6.02 ▲0.13100.37 ▲0.90
Media Library /wp-admin/upload.php3.36 ▲0.1334.54 ▲1.19

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Entity Viewer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.73 ▼0.891.60 ▼0.3844.54 ▲4.61
Dashboard /wp-admin2,209 ▲214.82 ▼1.0897.35 ▼4.8140.53 ▼3.95
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0339.59 ▲1.9137.06 ▲3.87
Add New Post /wp-admin/post-new.php6,640 ▲5,10219.83 ▼3.34876.84 ▲192.0687.56 ▲26.84
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.1395.83 ▼15.0242.06 ▼6.79

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: show, display, field, metabox, meta...

entity-viewer/entity-viewer.php Passed 13 tests

This is the main PHP file of "Entity Viewer" version 0.5.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
127 characters long description:
Displays properties and custom fields of WordPress entities (posts, users, terms, comments) for debugging/development purposes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin11,890 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
JSON20010,358
JavaScript2115649728
PHP614298549
Sass1625255

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity6.50
▷ Minimum class complexity3.00
▷ Maximum class complexity11.00
Average method complexity3.75
▷ Minimum method complexity2.00
▷ Maximum method complexity8.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods8
▷ Static methods8100.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions2291.67%
▷ Anonymous functions28.33%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected