90% xcoobee-document

Code Review | XcooBee Document

WordPress plugin XcooBee Document scored90%from 54 tests.

About plugin

  • Plugin page: xcoobee-document
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Jan 24, 2019
  • Latest release: Jul 2, 2019
  • Number of updates: 16
  • Update frequency: every 9.9 days
  • Top authors: xcoobee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /748 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.98ms] Passed 4 tests

Analyzing server-side resources used by XcooBee Document
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.49 ▼0.50
Dashboard /wp-admin3.34 ▼0.0046.77 ▼15.82
Posts /wp-admin/edit.php3.39 ▲0.0445.92 ▼1.89
Add New Post /wp-admin/post-new.php5.92 ▲0.0488.52 ▲2.28
Media Library /wp-admin/upload.php3.27 ▲0.0436.52 ▲3.26

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

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

Browser metrics Passed 4 tests

XcooBee Document: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8714.43 ▼0.132.19 ▲0.3643.33 ▼1.11
Dashboard /wp-admin2,214 ▲295.90 ▲0.09106.75 ▲4.3043.90 ▲6.39
Posts /wp-admin/edit.php2,099 ▲102.02 ▼0.0040.32 ▲3.8436.09 ▼0.49
Add New Post /wp-admin/post-new.php1,522 ▲217.74 ▼5.45645.69 ▲11.4750.17 ▼18.11
Media Library /wp-admin/upload.php1,390 ▲24.22 ▲0.0295.61 ▲2.0643.40 ▲1.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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 | 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: document, xcoobee, privacy, security, ccpa...

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

Analyzing the main PHP file in "XcooBee Document" version 1.3.3
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected4,027 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript55886362,691
PHP8105292897
CSS650388
SVG40151

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity11.50
▷ Minimum class complexity3.00
▷ Maximum class complexity22.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods26
▷ Static methods415.38%
▷ Public methods2388.46%
▷ Protected methods13.85%
▷ Private methods27.69%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin