84% camoo-cdn

Code Review | CAMOO CDN

WordPress plugin CAMOO CDN scored84%from 54 tests.

About plugin

  • Plugin page: camoo-cdn
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.7.1
  • WordPress version: 6.3.1
  • First release: Apr 29, 2021
  • Latest release: Apr 29, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: camoo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /302 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼2.90ms] Passed 4 tests

An overview of server-side resources used by CAMOO CDN
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1440.85 ▼1.53
Dashboard /wp-admin3.41 ▲0.1149.98 ▼4.87
Posts /wp-admin/edit.php3.53 ▲0.1746.64 ▼3.57
Add New Post /wp-admin/post-new.php6.00 ▲0.1187.89 ▼1.62
Media Library /wp-admin/upload.php3.34 ▲0.1140.07 ▲1.92

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for CAMOO CDN
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1913.26 ▼1.101.41 ▼0.9040.23 ▼4.59
Dashboard /wp-admin2,224 ▲215.83 ▲0.94102.02 ▼16.9140.71 ▼2.17
Posts /wp-admin/edit.php2,100 ▲32.04 ▲0.0534.82 ▼0.9935.95 ▲1.09
Add New Post /wp-admin/post-new.php1,526 ▼617.64 ▼5.31702.00 ▲10.9253.67 ▲5.64
Media Library /wp-admin/upload.php1,400 ▼34.25 ▼0.02111.26 ▲2.6548.82 ▲4.65

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • wp_camoo_cdn_db_version
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/camoo-cdn/camoo-cdn.php

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

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: managed hosting with cdn, camoo cdn integration, hbergement web avec cdn, camoohosting

camoo-cdn/camoo-cdn.php 92% from 13 tests

The entry point to "CAMOO CDN" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin763 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP15243224744
JSON20017
Markdown1002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes450.00%
Methods55
▷ Static methods2952.73%
▷ Public methods5090.91%
▷ Protected methods00.00%
▷ Private methods59.09%
Functions6
▷ Named functions116.67%
▷ Anonymous functions583.33%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.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 files were detected