Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/magcloud-widget/magcloud_widget.php+135
Function create_function() is deprecated
Server metrics [RAM: ▼1.92MB] [CPU: ▼59.43ms] Passed 4 tests
A check of server-side resources used by Magcloud Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 4.52 ▼35.70 |
Dashboard /wp-admin | 2.10 ▼1.25 | 5.75 ▼62.61 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.53 ▼43.92 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.72 ▼95.49 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.15 ▼29.83 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_issue_cover_widget |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Magcloud Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.27 ▼0.45 | 2.28 ▲0.31 | 37.81 ▼2.03 |
Dashboard /wp-admin | 2,195 ▲24 | 5.50 ▼0.10 | 86.74 ▼3.52 | 44.20 ▲2.63 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.98 ▼0.05 | 37.21 ▼3.47 | 35.87 ▼3.63 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 18.23 ▼4.76 | 630.51 ▼42.63 | 72.55 ▲16.97 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.30 ▲0.09 | 95.19 ▼4.90 | 42.43 ▼6.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/magcloud-widget/magcloud_widget.php+135
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_issue_cover_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/magcloud-widget/magcloud_widget.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI found ("")
magcloud-widget/magcloud_widget.php 92% from 13 tests
The main PHP file in "Magcloud Widget" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("magcloud-widget.php" instead of "magcloud_widget.php")
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
Everything looks great! No dangerous files found in this plugin1,372 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 205 | 285 | 1,369 |
HTML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 111.33 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 2 | 2.22% |
▷ Public methods | 73 | 81.11% |
▷ Protected methods | 16 | 17.78% |
▷ Private methods | 1 | 1.11% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin