90% xo-post-background

Code Review | XO Post Background

WordPress plugin XO Post Background scored90%from 54 tests.

About plugin

  • Plugin page: xo-post-background
  • Plugin version: 2.0.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Apr 19, 2017
  • Latest release: Aug 7, 2023
  • Number of updates: 44
  • Update frequency: every 52.3 days
  • Top authors: ishitaka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /19,894 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.52ms] Passed 4 tests

A check of server-side resources used by XO Post Background
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0836.83 ▼4.52
Dashboard /wp-admin3.39 ▲0.0450.97 ▼9.17
Posts /wp-admin/edit.php3.50 ▲0.1449.31 ▲3.27
Add New Post /wp-admin/post-new.php5.98 ▲0.0984.28 ▼3.67
Media Library /wp-admin/upload.php3.31 ▲0.0837.76 ▲5.20

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by XO Post Background
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.37 ▼0.191.69 ▼0.0838.90 ▼5.09
Dashboard /wp-admin2,198 ▲215.58 ▼0.0881.95 ▼26.4338.13 ▼6.85
Posts /wp-admin/edit.php2,103 ▼02.03 ▲0.0439.91 ▼1.5535.11 ▼1.52
Add New Post /wp-admin/post-new.php1,536 ▲823.32 ▲0.22661.28 ▲50.8868.50 ▲25.67
Media Library /wp-admin/upload.php1,403 ▲94.23 ▲0.00110.08 ▲13.8749.33 ▲8.60

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: background

xo-post-background/xo-post-background.php 92% from 13 tests

This is the main PHP file of "XO Post Background" version 2.0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" 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
Good job! No executable or dangerous file extensions detected837 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript5472496
PHP369131341

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity62.00
▷ Minimum class complexity62.00
▷ Maximum class complexity62.00
Average method complexity5.07
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1280.00%
▷ Protected methods00.00%
▷ Private methods320.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.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
PNG images were not found in this plugin