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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 46.82 ▲4.62 |
Dashboard /wp-admin | 3.52 ▲0.17 | 53.92 ▼11.56 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 51.59 ▼4.45 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 101.30 ▼2.36 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 40.08 ▲4.74 |
Cloud Infinite /wp-admin/options-general.php?page=wptc-cloud-infinite | 3.42 | 39.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.08 | 1.99 ▲0.24 | 43.77 ▲4.32 |
Dashboard /wp-admin | 2,199 ▲22 | 5.65 ▲0.07 | 95.18 ▲3.87 | 41.24 ▲0.16 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.99 ▲0.01 | 35.78 ▼2.99 | 33.58 ▼5.29 |
Add New Post /wp-admin/post-new.php | 1,529 ▲125 | 23.43 ▲5.61 | 691.43 ▲55.57 | 52.94 ▼5.27 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.19 ▲0.05 | 97.57 ▼10.55 | 40.91 ▼6.04 |
Cloud Infinite /wp-admin/options-general.php?page=wptc-cloud-infinite | 946 | 2.03 | 21.89 | 32.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 217 | 563 | 1,188 |
PO File | 1 | 39 | 41 | 110 |
JSON | 2 | 0 | 0 | 31 |
Markdown | 1 | 11 | 0 | 31 |
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 code | 0.40 |
Average class complexity | 11.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 9 | 69.23% |
▷ Concrete classes | 4 | 30.77% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 43 | 66.15% |
▷ Public methods | 60 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.69% |
Functions | 18 | |
▷ Named functions | 4 | 22.22% |
▷ Anonymous functions | 14 | 77.78% |
Constants | 14 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 14 | 100.00% |
▷ Public constants | 14 | 100.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