90% xcoobee-form

Code Review | XcooBee Form

WordPress plugin XcooBee Form scored 90% from 54 tests.

About plugin

  • Plugin page: xcoobee-form
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Mar 23, 2019
  • Latest release: Jul 28, 2019
  • Number of updates: 8
  • Update frequency: every 15.9 days
  • Top authors: xcoobee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 713 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.04MB] [CPU: ▼8.29ms] Passed 4 tests

Server-side resources used by XcooBee Form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.76 ▲1.92
Dashboard /wp-admin3.35 ▲0.0451.66 ▲7.23
Posts /wp-admin/edit.php3.40 ▲0.0445.43 ▼9.49
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.58 ▼17.92
Media Library /wp-admin/upload.php3.27 ▲0.0431.76 ▼7.65

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

XcooBee Form: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6214.66 ▲0.381.78 ▲0.1540.26 ▲1.38
Dashboard /wp-admin2,214 ▲265.83 ▲0.95118.85 ▼2.9249.83 ▼0.06
Posts /wp-admin/edit.php2,096 ▲72.03 ▲0.0542.81 ▲3.4937.55 ▼4.94
Add New Post /wp-admin/post-new.php1,522 ▲11617.84 ▼0.05642.27 ▼48.1857.49 ▲1.27
Media Library /wp-admin/upload.php1,396 ▲84.19 ▼0.04101.10 ▼29.9141.60 ▼21.67

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • 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
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: consent, gdpr, privacy, ccpa, security...

xcoobee-form/xcoobee-form.php 92% from 13 tests

This is the main PHP file of "XcooBee Form" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin499 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP871260450
JavaScript46837
CSS20012

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity9.75
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods20
▷ Static methods420.00%
▷ Public methods1785.00%
▷ Protected methods00.00%
▷ Private methods315.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin