67% betaout

Code Review | Betaout ContentCloud

WordPress plugin Betaout ContentCloud scored67%from 54 tests.

About plugin

  • Plugin page: betaout
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 29, 2012
  • Latest release: Sep 27, 2016
  • Number of updates: 122
  • Update frequency: every 12.0 days
  • Top authors: Betaout (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /3,605 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.19MB] [CPU: ▼19.91ms] Passed 4 tests

Server-side resources used by Betaout ContentCloud
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0326.87 ▼20.02
Dashboard /wp-admin3.11 ▼0.2034.97 ▼17.74
Posts /wp-admin/edit.php3.25 ▼0.1136.99 ▼17.53
Add New Post /wp-admin/post-new.php5.49 ▼0.4070.41 ▼24.36
Media Library /wp-admin/upload.php3.20 ▼0.0334.57 ▼3.98

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Betaout ContentCloud
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.72 ▲0.731.73 ▼0.0842.39 ▼4.38
Dashboard /wp-admin2,209 ▲325.52 ▼0.1687.40 ▼33.8366.51 ▲14.34
Posts /wp-admin/edit.php2,120 ▲171.98 ▲0.0140.14 ▼3.3341.86 ▲3.41
Add New Post /wp-admin/post-new.php1,543 ▲1423.14 ▼0.00761.75 ▲141.7864.64 ▲5.86
Media Library /wp-admin/upload.php1,417 ▲174.12 ▼0.05114.76 ▲7.0980.37 ▲34.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/betaout/contentcloud.php+136
    Use of undefined constant self - assumed 'self' (this will throw an Error in a future version of PHP)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 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 0% 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/betaout/push-pull.php
  • 10× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      include_once(): Failed opening 'ABSPATH/WPINC/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/betaout/index.php on line 13
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/betaout/index.php on line 13
    • > PHP Warning
      include_once(ABSPATH/WPINC/admin-bar.php): failed to open stream: No such file or directory in wp-content/plugins/betaout/index.php on line 14
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/betaout/index.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/betaout/configuration.php:3
    • > PHP Warning
      include_once(ABSPATH/WPINC/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/betaout/index.php on line 13
    • > PHP Warning
      include_once(): Failed opening 'ABSPATH/WPINC/admin-bar.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/betaout/index.php on line 14
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/betaout/index.php on line 13
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/betaout/index.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/betaout/index.php:126

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

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === betaout === )
  • Screenshots: These screenshots require images: #1 (**EDITOR's DASHBOARD** -The dashboard that gets you in control of every single story being worked on by your editorial team.), #2 (**My Tasks** - Keep track of what you need to do. Now and Later.), #3 (**Editorial Calendar** - Plan your content startegy visually.), #4 (**Idearoom** - Brainstrom ideas with you team before converting them is assignment.), #5 (**Rich Text Editor** - Text editor made for collaboration.), #6 (**User Insights** -A single page to give real-time insights for every team members.)
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
Please take inspiration from this readme.txt

betaout/index.php 92% from 13 tests

The main file in "Betaout ContentCloud" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("betaout.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected933 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP510830540
CSS1551393

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity14.33
▷ Minimum class complexity9.00
▷ Maximum class complexity20.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods1578.95%
▷ Public methods1894.74%
▷ Protected methods00.00%
▷ Private methods15.26%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
12 PNG files occupy 0.34MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/desks.png0.23KB0.25KB0.00%
screenshot-6.png207.90KB65.00KB▼ 68.74%
images/cloudSmall.png4.22KB2.16KB▼ 48.85%
images/story.png0.91KB0.97KB0.00%
images/closeIcon.png1.13KB1.17KB0.00%