78% xili-postinpost

Code Review | xili Post in Post

WordPress plugin xili Post in Post scored78%from 54 tests.

About plugin

  • Plugin page: xili-postinpost
  • Plugin version: 1.7.02
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.2
  • WordPress version: 6.3.1
  • First release: Nov 14, 2010
  • Latest release: May 21, 2019
  • Number of updates: 63
  • Update frequency: every 49.4 days
  • Top authors: michelwppi (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /9,616 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.15MB] [CPU: ▼15.29ms] Passed 4 tests

A check of server-side resources used by xili Post in Post
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.81 ▼5.28
Dashboard /wp-admin3.21 ▼0.0933.96 ▼21.36
Posts /wp-admin/edit.php3.28 ▼0.0835.72 ▼12.62
Add New Post /wp-admin/post-new.php5.46 ▼0.4280.32 ▼21.89
Media Library /wp-admin/upload.php3.22 ▼0.0130.09 ▼4.93
©xili Post in Post /wp-admin/options-general.php?page=xili_postinpost_page3.1930.92

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

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

Browser metrics Passed 4 tests

Checking browser requirements for xili Post in Post
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲6414.36 ▼0.191.62 ▼0.3242.46 ▼1.81
Dashboard /wp-admin2,257 ▲865.82 ▲0.22102.58 ▲4.8342.68 ▼3.75
Posts /wp-admin/edit.php2,159 ▲592.29 ▲0.2648.16 ▲5.5435.24 ▲0.18
Add New Post /wp-admin/post-new.php1,538 ▲1223.14 ▼0.44616.52 ▼37.1256.72 ▼1.06
Media Library /wp-admin/upload.php1,459 ▲594.32 ▲0.15108.44 ▲0.3249.52 ▲3.06
©xili Post in Post /wp-admin/options-general.php?page=xili_postinpost_page1,2842.4146.0841.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_xilipostin
    • widget_recent-comments
    • widget_recent-posts
    • xili_postinpost_settings
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=xili_postinpost_page
    • > User deprecated in wp-includes/functions.php+5828
    Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.

SRP 50% from 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
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/xili-postinpost/class-xili-post-in-post-widget.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/xili-postinpost/xili-postinpost.php:53

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can take inspiration from this readme.txt

xili-postinpost/xili-postinpost.php 92% from 13 tests

"xili Post in Post" version 1.7.02's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 272 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,444 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP31601821,107
PO File1117159337

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity71.00
▷ Minimum class complexity67.00
▷ Maximum class complexity75.00
Average method complexity7.09
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
xilipostinpost-logo-32.png1.46KB1.48KB0.00%