72% cloage

Code Review | Cloage Wordpress Plugin

WordPress plugin Cloage Wordpress Plugin scored72%from 54 tests.

About plugin

  • Plugin page: cloage
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-5.4.1
  • WordPress version: 6.3.1
  • First release: Jun 5, 2020
  • Latest release: Nov 16, 2020
  • Number of updates: 10
  • Update frequency: every 16.5 days
  • Top authors: cloage (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /583 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲1.02MB] [CPU: ▲198.80ms] Passed 4 tests

Analyzing server-side resources used by Cloage Wordpress Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.32 ▲0.8549.61 ▲7.68
Dashboard /wp-admin4.40 ▲1.05337.39 ▲277.46
Posts /wp-admin/edit.php4.45 ▲1.09321.63 ▲268.70
Add New Post /wp-admin/post-new.php7.00 ▲1.11350.98 ▲241.34
Media Library /wp-admin/upload.php4.32 ▲1.09323.36 ▲285.39
Remote upload lists /wp-admin/admin.php?page=cloage-remote-uploads4.23290.07
Backup /wp-admin/admin.php?page=cloage-backup4.23310.76
Add new upload to Cloage /wp-admin/upload.php?page=media-cloage-new4.23302.03
Settings /wp-admin/admin.php?page=cloage4.23319.48

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 136 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
cloage_rewrite_version_old
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cloage Wordpress Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲17714.52 ▲0.117.45 ▲5.7341.02 ▼0.93
Dashboard /wp-admin2,261 ▲815.70 ▲0.03130.24 ▲38.9941.33 ▼1.97
Posts /wp-admin/edit.php2,163 ▲602.54 ▲0.5144.12 ▲1.9039.55 ▲3.05
Add New Post /wp-admin/post-new.php1,586 ▲5823.81 ▲0.51682.82 ▲4.6336.07 ▼18.46
Media Library /wp-admin/upload.php1,454 ▲575.05 ▲0.87107.12 ▼13.0248.91 ▼0.44
Remote upload lists /wp-admin/admin.php?page=cloage-remote-uploads8512.6131.4224.50
Backup /wp-admin/admin.php?page=cloage-backup8192.5830.6825.01
Add new upload to Cloage /wp-admin/upload.php?page=media-cloage-new8582.5337.6938.72
Settings /wp-admin/admin.php?page=cloage9432.6030.7929.77

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • cloage_rewrite_version_old
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
Please fix the following items
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/cloage/includes/view/general/notice.php
    • > /wp-content/plugins/cloage/includes/view/woocommerce/account/sync-download-content.php
    • > /wp-content/plugins/cloage/includes/view/media/upload-menu.php
  • 79× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Cloage\\Options\\Fields\\FieldsAbstract' not found in wp-content/plugins/cloage/includes/Options/Fields/Backup/Main/UploadPath.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/cloage/includes/view/options/menu.php:2
    • > PHP Notice
      Undefined variable: slug in wp-content/plugins/cloage/includes/view/woocommerce/product/custom-fields-only-cloud.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'Cloage\\Options\\Sections\\SectionsAbstract' not found in wp-content/plugins/cloage/includes/Options/Sections/Backup/Main.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/cloage/includes/view/woocommerce/product/variation/custom-fields-only-cloud-item.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Cloage\\Options\\Settings\\SettingsAbstract' not found in wp-content/plugins/cloage/includes/Options/Settings/Backup.php:10
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/cloage/includes/view/woocommerce/product/variation/custom-fields-sync-checkbox.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'Cloage\\Options\\Settings\\SettingsAbstract' not found in wp-content/plugins/cloage/includes/Options/Settings/General.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/cloage/includes/view/media/is-on-cloud-media-list.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/cloage/includes/view/woocommerce/product/custom-fields-only-cloud-item.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/upload.php?page=media-cloage-new
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught Error: Companion hostname is required, please consult https://uppy.io/docs/companion

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (General settings page), #2 (Media settings page), #3 (Backup settings page), #4 (Woocommerce settings page), #5 (Remote downloads events list), #6 (Duplicator integration), #7 (Upload new file), #8 (Multiple upload files), #9 (Uploading progress), #10 (Uploaded files)
You can look at the official readme.txt

cloage/cloage.php Passed 13 tests

This is the main PHP file of "Cloage Wordpress Plugin" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
32 characters long description:
Cloage official wordpress plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected6,888 lines of code in 124 files:
LanguageFilesBlank linesComment linesLines of code
PHP799591,0535,154
CSS6894661
PO File11,8454,927597
JavaScript383740476

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity11.94
▷ Minimum class complexity1.00
▷ Maximum class complexity119.00
Average method complexity3.37
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces19
Interfaces0
Traits0
Classes54
▷ Abstract classes35.56%
▷ Concrete classes5194.44%
▷ Final classes00.00%
Methods257
▷ Static methods4517.51%
▷ Public methods25398.44%
▷ Protected methods10.39%
▷ Private methods31.17%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.93MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png75.31KB29.71KB▼ 60.56%
screenshot-10.png142.82KB49.87KB▼ 65.08%
screenshot-3.png68.20KB27.19KB▼ 60.14%
screenshot-9.png134.21KB48.00KB▼ 64.23%
screenshot-8.png154.61KB52.39KB▼ 66.11%