84% wptc-cloud-infinite

Code Review | Enhanced Media with Cloud Infinite

WordPress plugin Enhanced Media with Cloud Infinite scored84%from 54 tests.

About plugin

  • Plugin page: wptc-cloud-infinite
  • Plugin version: 0.1.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2
  • WordPress version: 6.3.1
  • First release: Nov 29, 2022
  • Latest release: Mar 22, 2023
  • Number of updates: 8
  • Update frequency: every 14.1 days
  • Top authors: stevapple (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /190 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼3.44ms] Passed 4 tests

Server-side resources used by Enhanced Media with Cloud Infinite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1846.82 ▲4.62
Dashboard /wp-admin3.52 ▲0.1753.92 ▼11.56
Posts /wp-admin/edit.php3.63 ▲0.2751.59 ▼4.45
Add New Post /wp-admin/post-new.php6.12 ▲0.23101.30 ▼2.36
Media Library /wp-admin/upload.php3.44 ▲0.2140.08 ▲4.74
Cloud Infinite /wp-admin/options-general.php?page=wptc-cloud-infinite3.4239.10

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Enhanced Media with Cloud Infinite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▼0.081.99 ▲0.2443.77 ▲4.32
Dashboard /wp-admin2,199 ▲225.65 ▲0.0795.18 ▲3.8741.24 ▲0.16
Posts /wp-admin/edit.php2,104 ▲71.99 ▲0.0135.78 ▼2.9933.58 ▼5.29
Add New Post /wp-admin/post-new.php1,529 ▲12523.43 ▲5.61691.43 ▲55.5752.94 ▼5.27
Media Library /wp-admin/upload.php1,401 ▲14.19 ▲0.0597.57 ▼10.5540.91 ▼6.04
Cloud Infinite /wp-admin/options-general.php?page=wptc-cloud-infinite9462.0321.8932.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wptc-cloud-infinite/wptc-cloud-infinite.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'WPTC\\Functionality' not found in wp-content/plugins/wptc-cloud-infinite/src/General.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'WPTC\\Functionality' not found in wp-content/plugins/wptc-cloud-infinite/src/ImageResize.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'WPTC\\Functionality' not found in wp-content/plugins/wptc-cloud-infinite/src/ImageQuality.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: tencent-cloud, media-library

wptc-cloud-infinite/wptc-cloud-infinite.php Passed 13 tests

The principal PHP file in "Enhanced Media with Cloud Infinite" v. 0.1.2 is loaded by WordPress automatically on each request
104 characters long description:
Enhances WordPress media library with cloud-based intelligent data processing powered by Cloud Infinite.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,360 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP212175631,188
PO File13941110
JSON20031
Markdown111031

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity11.07
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces6
Interfaces1
Traits0
Classes13
▷ Abstract classes969.23%
▷ Concrete classes430.77%
▷ Final classes00.00%
Methods65
▷ Static methods4366.15%
▷ Public methods6092.31%
▷ Protected methods00.00%
▷ Private methods57.69%
Functions18
▷ Named functions422.22%
▷ Anonymous functions1477.78%
Constants14
▷ Global constants00.00%
▷ Class constants14100.00%
▷ Public constants14100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin