90% reveal-post-data

Code Review | Reveal Post Data

WordPress plugin Reveal Post Data scored90%from 54 tests.

About plugin

  • Plugin page: reveal-post-data
  • Plugin version: 0.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.4-6.4
  • WordPress version: 6.3.1
  • First release: Nov 16, 2023
  • Latest release: Nov 16, 2023
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: codeamp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /11 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.01MB] [CPU: ▼10.84ms] Passed 4 tests

Analyzing server-side resources used by Reveal Post Data
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.79 ▲0.44
Dashboard /wp-admin3.31 ▼0.0443.77 ▼18.43
Posts /wp-admin/edit.php3.36 ▲0.0044.96 ▼5.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.94 ▼16.15
Media Library /wp-admin/upload.php3.23 ▲0.0031.15 ▼3.64

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Reveal Post Data
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.31 ▲0.181.90 ▲0.2943.43 ▼0.62
Dashboard /wp-admin2,195 ▲185.64 ▼0.0190.34 ▼2.2041.22 ▼0.06
Posts /wp-admin/edit.php2,100 ▲32.03 ▲0.0738.91 ▼0.9033.90 ▼0.67
Add New Post /wp-admin/post-new.php1,526 ▼023.14 ▼0.06619.03 ▼135.0852.01 ▼21.05
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.0296.06 ▼3.5642.44 ▲0.73

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: block

reveal-post-data/reveal-post-data.php Passed 13 tests

This is the main PHP file of "Reveal Post Data" version 0.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
62 characters long description:
Adds a button in the editor sidebar to show the raw post data.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected28,595 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JSON20028,218
JavaScript31221191
YAML141990
PHP2112868
Sass14027
CSS1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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
Namespaces0
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin