89% wp-xrp-info

Code Review | WP XRP Info

WordPress plugin WP XRP Info scored 89% from 54 tests.

About plugin

  • Plugin page: wp-xrp-info
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.1.1
  • WordPress version: 6.3.1
  • First release: Apr 11, 2019
  • Latest release: Apr 11, 2019
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: jetwes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 447 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▲2.31ms] Passed 4 tests

Analyzing server-side resources used by WP XRP Info
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.77 ▲3.93
Dashboard /wp-admin3.34 ▲0.0348.07 ▲1.45
Posts /wp-admin/edit.php3.39 ▲0.0344.96 ▼1.84
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.24 ▲5.70
Media Library /wp-admin/upload.php3.26 ▲0.0338.01 ▲6.47

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

WP XRP Info: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.41 ▼0.261.74 ▼0.1743.78 ▼2.59
Dashboard /wp-admin2,206 ▲184.85 ▼0.0396.02 ▼4.6339.91 ▼5.08
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0734.03 ▼5.6333.23 ▼4.74
Add New Post /wp-admin/post-new.php1,542 ▲2218.53 ▼4.62634.97 ▲27.1755.32 ▲4.05
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0193.95 ▼1.1741.60 ▼3.46

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Donate link: Invalid URI found ("")
You can look at the official readme.txt

wp-xrp-info/xrp-info.php 92% from 13 tests

The main PHP file in "WP XRP Info" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-xrp-info.php" instead of "xrp-info.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected253 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP332106158
PO File212654
Markdown121041

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity5.50
▷ Minimum class complexity2.00
▷ Maximum class complexity9.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin