94% wpi-display-plugin-data

Code Review | WPi Display Plugin Data - Show wordpress.org plugins data in your website

WordPress plugin WPi Display Plugin Data - Show wordpress.org plugins data in your website scored 94% from 54 tests.

About plugin

  • Plugin page: wpi-display-plugi...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 5.9.2
  • First release: Jan 15, 2015
  • Latest release: Jan 25, 2015
  • Number of updates: 19
  • Update frequency: every 0.5 days
  • Top authors: wooprali (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 629 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼293.74ms] Passed 4 tests

Server-side resources used by WPi Display Plugin Data - Show wordpress.org plugins data in your website
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0261.11 ▲3.61
Dashboard /wp-admin3.43 ▲0.0237.12 ▼3.46
Posts /wp-admin/edit.php3.66 ▲0.0254.02 ▲9.66
Add New Post /wp-admin/post-new.php6.90 ▼0.0896.85 ▼1,172.84
Media Library /wp-admin/upload.php3.31 ▲0.0129.78 ▼2.27

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WPi Display Plugin Data - Show wordpress.org plugins data in your website: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.94 ▲0.385.75 ▼0.642.33 ▼0.15
Dashboard /wp-admin2,895 ▲346.15 ▼0.04120.48 ▼19.00156.15 ▼13.96
Posts /wp-admin/edit.php2,694 ▲63.24 ▼0.1262.33 ▼2.64135.77 ▼15.59
Add New Post /wp-admin/post-new.php1,761 ▲5019.10 ▼1.52404.60 ▼29.63164.60 ▲4.90
Media Library /wp-admin/upload.php1,698 ▲35.51 ▲0.00138.54 ▼18.70185.70 ▼8.60

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wpi-display-plugin-data/wpi-display-plugin-data.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: show plugins data, promote, api, wordpress plugins api, display plugins data...

wpi-display-plugin-data/wpi-display-plugin-data.php 85% from 13 tests

"WPi Display Plugin Data - Show wordpress.org plugins data in your website" 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:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/locale/" does not exist

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
There were no executable files found in this plugin56 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131856

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
stars.png1.97KB1.07KB▼ 45.82%
default.png2.81KB1.68KB▼ 40.33%
default2.png9.27KB7.87KB▼ 15.08%