84% convertbox-auto-embed

Code Review | ConvertBox Auto Embed WordPress plugin

WordPress plugin ConvertBox Auto Embed WordPress plugin scored84%from 54 tests.

About plugin

  • Plugin page: convertbox-auto-e...
  • Plugin version: 1.0.20
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Jan 17, 2018
  • Latest release: Mar 22, 2023
  • Number of updates: 31
  • Update frequency: every 61.7 days
  • Top authors: convertbar (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

6,000+ active /37,043 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 gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.23ms] Passed 4 tests

An overview of server-side resources used by ConvertBox Auto Embed WordPress plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.90 ▼2.27
Dashboard /wp-admin3.31 ▼0.0349.50 ▼17.10
Posts /wp-admin/edit.php3.37 ▲0.0145.58 ▼2.65
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.39 ▼10.89
Media Library /wp-admin/upload.php3.24 ▲0.0140.93 ▲4.04
ConvertBox /wp-admin/tools.php?page=convertbox3.2332.66

Server storage [IO: ▲1.12MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

ConvertBox Auto Embed WordPress plugin: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7714.28 ▼0.253.74 ▲1.9643.00 ▼0.02
Dashboard /wp-admin2,212 ▲325.54 ▼0.1184.64 ▼10.2041.59 ▲2.11
Posts /wp-admin/edit.php2,118 ▲182.01 ▼0.0239.83 ▲0.6936.62 ▲2.65
Add New Post /wp-admin/post-new.php1,537 ▲1123.77 ▲0.74669.64 ▲15.1362.03 ▲6.88
Media Library /wp-admin/upload.php1,417 ▲204.24 ▼0.03102.35 ▼2.3949.20 ▲3.21
ConvertBox /wp-admin/tools.php?page=convertbox8201.9923.2628.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/convertbox-auto-embed/includes/rest/CB_REST_Abstract_Controller.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/convertbox-auto-embed/includes/rest/CB_REST_Abstract_Controller.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/convertbox-auto-embed/includes/rest/CB_REST_Abstract_Controller.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/convertbox-auto-embed/convert-box-plugin.php:98
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/convertbox-auto-embed/embed-code.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/convertbox-auto-embed/embed-page.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/convertbox-auto-embed/includes/rest/CB_REST_Abstract_Controller.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: convertbox, convert box

convertbox-auto-embed/convert-box-plugin.php 92% from 13 tests

"ConvertBox Auto Embed WordPress plugin" version 1.0.20's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("convertbox-auto-embed.php" instead of "convert-box-plugin.php")

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
No dangerous file extensions were detected5,366 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS323132,457
PHP85319238

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity1.75
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/ConvertBox-logo-wordpress.png7.28KB7.58KB0.00%