84% bluecube-content-feedback

Code Review | Blue Cube Content Feedback

WordPress plugin Blue Cube Content Feedback scored 84% from 54 tests.

About plugin

  • Plugin page: bluecube-content-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.5
  • WordPress version: 5.8.1
  • First release: May 17, 2016
  • Latest release: Oct 11, 2016
  • Number of updates: 3
  • Update frequency: every 49.0 days
  • Top authors: thebluecube (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 498 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼145.29ms] Passed 4 tests

Analyzing server-side resources used by Blue Cube Content Feedback
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1734.71 ▲14.42
Dashboard /wp-admin3.12 ▲0.0640.04 ▼5.29
Posts /wp-admin/edit.php3.17 ▲0.0646.21 ▼3.99
Add New Post /wp-admin/post-new.php5.47 ▲0.0492.92 ▼573.02
Media Library /wp-admin/upload.php3.06 ▲0.0631.90 ▲1.13

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options
widget_contentfeedbackformwidget

Browser metrics Passed 4 tests

Blue Cube Content Feedback: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,681 ▲8515.92 ▲0.3712.31 ▲0.9747.32 ▼1.01
Dashboard /wp-admin2,967 ▲335.97 ▼0.19166.10 ▼2.84107.02 ▼3.73
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0165.92 ▲3.6795.53 ▲7.14
Add New Post /wp-admin/post-new.php1,683 ▲10218.76 ▼1.84394.91 ▼49.98103.74 ▼18.31
Media Library /wp-admin/upload.php1,807 ▼05.01 ▲0.03161.42 ▲4.37115.91 ▲0.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_contentfeedbackformwidget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/bluecube-content-feedback/template/settings.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bluecube-content-feedback/class/ContentFeedbackFormWidget.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

bluecube-content-feedback/bluecube-content-feedback.php Passed 13 tests

The entry point to "Blue Cube Content Feedback" version 1.0 is a PHP file that has certain tags in its header comment area
58 characters long description:
This plugin adds a content feedback system to your website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin244 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP56126214
JavaScript14027
CSS1003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity15.50
▷ Minimum class complexity14.00
▷ Maximum class complexity17.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods211.11%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin