62% cloud-folder-share

Code Review | Cloud Folder Share

WordPress plugin Cloud Folder Share scored62%from 54 tests.

About plugin

  • Plugin page: cloud-folder-share
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 20, 2013
  • Latest release: Jul 11, 2013
  • Number of updates: 10
  • Update frequency: every 20.4 days
  • Top authors: Hyno (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,248 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.62MB] [CPU: ▼34.07ms] Passed 4 tests

Server-side resources used by Cloud Folder Share
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3150.25 ▲1.97
Dashboard /wp-admin3.32 ▲0.0231.71 ▼26.19
Posts /wp-admin/edit.php3.32 ▼0.0325.15 ▼26.55
Add New Post /wp-admin/post-new.php3.32 ▼2.5628.11 ▼72.56
Media Library /wp-admin/upload.php3.32 ▲0.0927.11 ▼10.96
Cloud Folder Share /wp-admin/options-general.php?page=cloud-folder-share/cloud-folder-share.php3.3225.88

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 73 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
db_upgraded
CFS_cloud
widget_theysaidso_widget
widget_recent-comments
CFS_show_as
CFS_height
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Cloud Folder Share
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.23 ▼0.121.98 ▲0.3242.31 ▲1.84
Dashboard /wp-admin2,202 ▲255.62 ▲0.0294.99 ▲3.4042.72 ▼0.39
Posts /wp-admin/edit.php2,104 ▲42.03 ▼0.0138.16 ▲0.5237.15 ▲2.61
Add New Post /wp-admin/post-new.php1,529 ▲123.22 ▲0.21672.58 ▼28.4949.43 ▼3.19
Media Library /wp-admin/upload.php1,401 ▲14.26 ▼0.02101.46 ▼3.8342.71 ▼2.49
Cloud Folder Share /wp-admin/options-general.php?page=cloud-folder-share/cloud-folder-share.php1,1222.0236.9561.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=cloud-folder-share/cloud-folder-share.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • 47 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=cloud-folder-share/cloud-folder-share.php
    • > Warning in wp-content/plugins/cloud-folder-share/simple_html_dom.php+1365
    preg_match(): Compilation failed: invalid range in character class at offset 4
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=cloud-folder-share/cloud-folder-share.php
    • > Warning in wp-content/plugins/cloud-folder-share/simple_html_dom.php+685
    preg_match_all(): Compilation failed: invalid range in character class at offset 4
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=cloud-folder-share/cloud-folder-share.php
    • > Warning in wp-content/plugins/cloud-folder-share/simple_html_dom.php+692
    Invalid argument supplied for foreach()
    • > GET request to /wp-admin/options-general.php?page=cloud-folder-share/cloud-folder-share.php
    • > Notice in wp-content/plugins/cloud-folder-share/drives.php+170
    Undefined variable: contenDropbox
    • > GET request to /wp-admin/options-general.php?page=cloud-folder-share/cloud-folder-share.php
    • > Notice in wp-content/plugins/cloud-folder-share/cloud-folder-share.php+134
    Undefined variable: error

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/cloud-folder-share/js/CloudFolderShare_tinymce.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cloud-folder-share/js/scripts-hyno.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cloud-folder-share/cloud-folder-share.php:177
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/cloud-folder-share/admin_page.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can take inspiration from this readme.txt

cloud-folder-share/cloud-folder-share.php Passed 13 tests

Analyzing the main PHP file in "Cloud Folder Share" version 0.1
94 characters long description:
Permite la inclusion de carpetas compartidas en Google Drive, Dropbox en las entrada del Blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected5,877 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS616182,424
PHP82793251,933
JavaScript4221151,520

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity92.50
▷ Minimum class complexity15.00
▷ Maximum class complexity197.00
Average method complexity4.62
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods101
▷ Static methods10.99%
▷ Public methods8584.16%
▷ Protected methods1615.84%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants23
▷ Global constants23100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
24 PNG files occupy 0.39MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/msdropdown/icons/Cash-56.png3.13KB1.93KB▼ 38.57%
img/web_sprites-vfl0GXWGe.png241.43KB81.34KB▼ 66.31%
img/msdropdown/icons/Mastercard-56.png5.58KB2.34KB▼ 58.12%
img/icons/skydrive.png1.72KB0.58KB▼ 66.36%
img/msdropdown/icons/flagssprite_small.png70.15KB25.86KB▼ 63.14%