84% xml-for-hotline

Code Review | XML for Hotline

WordPress plugin XML for Hotline scored84%from 54 tests.

About plugin

  • Plugin page: xml-for-hotline
  • Plugin version: 1.3.6
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4.1
  • WordPress version: 6.3.1
  • First release: May 6, 2020
  • Latest release: Nov 30, 2023
  • Number of updates: 29
  • Update frequency: every 44.9 days
  • Top authors: icopydoc (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /2,269 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.16MB] [CPU: ▼1.07ms] Passed 4 tests

An overview of server-side resources used by XML for Hotline
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1641.70 ▼0.22
Dashboard /wp-admin3.47 ▲0.1652.55 ▲3.87
Posts /wp-admin/edit.php3.58 ▲0.2248.72 ▼1.21
Add New Post /wp-admin/post-new.php6.05 ▲0.1693.83 ▼6.12
Media Library /wp-admin/upload.php3.39 ▲0.1635.55 ▲3.26

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for XML for Hotline
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4614.72 ▲0.001.72 ▼0.0443.22 ▼0.22
Dashboard /wp-admin2,201 ▲245.62 ▼0.0794.43 ▼5.0643.48 ▼1.95
Posts /wp-admin/edit.php2,103 ▲62.02 ▲0.0540.14 ▼0.0139.95 ▲2.32
Add New Post /wp-admin/post-new.php1,529 ▲223.23 ▲0.30593.59 ▼74.2047.65 ▼13.41
Media Library /wp-admin/upload.php1,400 ▼34.28 ▲0.1298.17 ▲1.5741.53 ▲0.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/xml-for-hotline/classes/system/class-xfhu-wp-list-table.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/xml-for-hotline/classes/system/class-xfhu-settings-feed-wp-list-table.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-1.png) image required
You can look at the official readme.txt

xml-for-hotline/xml-for-hotline.php 92% from 13 tests

"XML for Hotline" version 1.3.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin5,361 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP172848354,136
PO File28091,4141,194
CSS10131

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity29.33
▷ Minimum class complexity1.00
▷ Maximum class complexity104.00
Average method complexity3.74
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes233.33%
Methods63
▷ Static methods1422.22%
▷ Public methods5282.54%
▷ Protected methods46.35%
▷ Private methods711.11%
Functions50
▷ Named functions4998.00%
▷ Anonymous functions12.00%
Constants21
▷ Global constants21100.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
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png84.65KB32.42KB▼ 61.69%