83% contentbird-cms-integration

Code Review | contentbird CMS Integration

WordPress plugin contentbird CMS Integration scored83%from 54 tests.

About plugin

  • Plugin page: contentbird-cms-i...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Apr 27, 2022
  • Latest release: Aug 24, 2022
  • Number of updates: 3
  • Update frequency: every 40.0 days
  • Top authors: contentbird (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,330 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by contentbird CMS Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1952.44 ▲5.82
Dashboard /wp-admin3.52 ▲0.1751.21 ▼17.67
Posts /wp-admin/edit.php3.57 ▲0.2150.15 ▼5.79
Add New Post /wp-admin/post-new.php6.04 ▲0.1588.48 ▼8.91
Media Library /wp-admin/upload.php3.38 ▲0.1542.64 ▲4.70
contentbird CMS Integration /wp-admin/options-general.php?page=contentbird3.3534.50

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
It is recommended to fix the following issues
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/contentbird-cms-integration/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for contentbird CMS Integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,868 ▲12213.51 ▼0.872.08 ▲0.0642.56 ▼9.79
Dashboard /wp-admin2,249 ▲464.87 ▼0.03103.99 ▼3.4538.73 ▼4.79
Posts /wp-admin/edit.php2,132 ▲292.03 ▼0.0138.96 ▼0.7234.23 ▼1.61
Add New Post /wp-admin/post-new.php1,561 ▲723.35 ▲5.13621.37 ▼45.0060.85 ▲5.19
Media Library /wp-admin/upload.php1,431 ▲314.21 ▼0.0397.39 ▼10.8445.57 ▼3.84
contentbird CMS Integration /wp-admin/options-general.php?page=contentbird8032.0126.0029.33

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
Almost there! Just fix the following items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/contentbird-cms-integration/admin/views/contentbird-messages.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/contentbird-cms-integration/admin/views/contentbird-options.php:17
    • > PHP Notice
      Undefined variable: form_send in wp-content/plugins/contentbird-cms-integration/admin/views/contentbird-options.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'Contentbird_Api_Contents' not found in wp-content/plugins/contentbird-cms-integration/includes/api/class-contentbird-api-contents-create.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Contentbird_Api_Contents' not found in wp-content/plugins/contentbird-cms-integration/includes/api/class-contentbird-api-contents-update.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: content marketing, content, marketing, contentbird

contentbird-cms-integration/contentbird.php 62% from 13 tests

The principal PHP file in "contentbird CMS Integration" v. 1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("contentbird-cms-integration.php" instead of "contentbird.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path must begin with a forward slash character ("/languages")

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
No dangerous file extensions were detected1,056 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP22228479971
PO File1203574
CSS12011

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity6.28
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods65
▷ Static methods34.62%
▷ Public methods4264.62%
▷ Protected methods1421.54%
▷ Private methods913.85%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants42
▷ Global constants00.00%
▷ Class constants42100.00%
▷ Public constants42100.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
There are no PNG files in this plugin