10% camazee

Code Review | Camazee

WordPress plugin Camazee scored10%from 54 tests.

About plugin

  • Plugin page: camazee
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: May 29, 2014
  • Latest release: Oct 12, 2016
  • Number of updates: 7
  • Update frequency: every 123.9 days
  • Top authors: softservice (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /7,032 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/camazee/camazee.php+366
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.30ms] Passed 4 tests

Server-side resources used by Camazee
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.02 ▼1.445.06 ▼37.14
Dashboard /wp-admin2.04 ▼1.267.87 ▼42.07
Posts /wp-admin/edit.php2.05 ▼1.316.12 ▼44.16
Add New Post /wp-admin/post-new.php2.05 ▼3.845.90 ▼85.84
Media Library /wp-admin/upload.php2.05 ▼1.185.51 ▼33.92
Camazee /wp-admin/options-general.php?page=camazee-control2.055.65

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Camazee
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8214.31 ▲0.022.07 ▲0.3443.55 ▼3.39
Dashboard /wp-admin2,207 ▲275.61 ▼0.0297.53 ▲6.0242.70 ▲1.43
Posts /wp-admin/edit.php2,115 ▲152.01 ▲0.0139.96 ▲4.6437.89 ▼0.72
Add New Post /wp-admin/post-new.php1,537 ▼817.41 ▼5.90694.03 ▲1.4755.28 ▼7.72
Media Library /wp-admin/upload.php1,403 ▲34.20 ▲0.06104.97 ▼16.8444.09 ▼3.97
Camazee /wp-admin/options-general.php?page=camazee-control9222.1624.4034.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/camazee/camazee.php+366
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=camazee-control
    • > Notice in wp-content/plugins/camazee/camazee.php+228
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/camazee/camazee.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === camazee === )
The official readme.txt is a good inspiration

camazee/camazee.php Passed 13 tests

"Camazee" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
With Camazee plugin you can easily add video chat into 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
No dangerous file extensions were detected301 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14230301

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods9100.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected