90% xo-featured-image-tools

Code Review | XO Featured Image Tools

WordPress plugin XO Featured Image Tools scored90%from 54 tests.

About plugin

  • Plugin page: xo-featured-image...
  • Plugin version: 1.13.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Nov 4, 2017
  • Latest release: Oct 3, 2023
  • Number of updates: 68
  • Update frequency: every 31.8 days
  • Top authors: ishitaka (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

20,000+ active /197,788 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼10.55ms] Passed 4 tests

Server-side resources used by XO Featured Image Tools
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1738.16 ▼1.63
Dashboard /wp-admin3.49 ▲0.1445.95 ▼16.59
Posts /wp-admin/edit.php3.61 ▲0.2550.98 ▲9.21
Add New Post /wp-admin/post-new.php6.07 ▲0.1881.86 ▼26.67
Media Library /wp-admin/upload.php3.41 ▲0.1835.33 ▲2.68
XO Featured Image /wp-admin/options-general.php?page=xo_featured_image3.4134.19
Featured Image /wp-admin/tools.php?page=xo-featured-image-tools3.3830.17

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
xo_featured_image_tools_options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for XO Featured Image Tools
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.25 ▼1.524.58 ▲2.6140.07 ▼1.91
Dashboard /wp-admin2,217 ▲264.87 ▼0.0199.11 ▼9.0840.17 ▼7.68
Posts /wp-admin/edit.php2,124 ▲352.00 ▼0.0140.71 ▲0.2535.02 ▲0.25
Add New Post /wp-admin/post-new.php1,525 ▲622.96 ▼0.06615.58 ▼14.5851.39 ▲3.46
Media Library /wp-admin/upload.php1,396 ▲54.23 ▲0.0893.63 ▼9.4442.20 ▼1.99
XO Featured Image /wp-admin/options-general.php?page=xo_featured_image1,0733.1140.4530.76
Featured Image /wp-admin/tools.php?page=xo-featured-image-tools8101.7933.9128.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The SRP test was a success

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: featured image, thumbnail

xo-featured-image-tools/xo-featured-image-tools.php 92% from 13 tests

The main file in "XO Featured Image Tools" v. 1.13.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin863 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP2126316665
JavaScript484123
CSS317975

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity72.00
▷ Minimum class complexity4.00
▷ Maximum class complexity140.00
Average method complexity5.44
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods32
▷ Static methods39.38%
▷ Public methods2681.25%
▷ Protected methods00.00%
▷ Private methods618.75%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin