Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/magnet/class-wp-widget-klangoo.php+116
Function create_function() is deprecated
Server metrics [RAM: ▼1.84MB] [CPU: ▼56.49ms] Passed 4 tests
Analyzing server-side resources used by Magnet
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.31 | 5.17 ▼41.08 |
Dashboard /wp-admin | 2.18 ▼1.17 | 6.50 ▼55.46 |
Posts /wp-admin/edit.php | 2.18 ▼1.18 | 6.88 ▼37.20 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.71 | 6.03 ▼92.21 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 6.22 ▼26.28 |
Server storage [IO: ▲0.03MB] [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 |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_klangoo |
Browser metrics Passed 4 tests
An overview of browser requirements for Magnet
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲49 | 14.79 ▲0.61 | 1.84 ▼0.38 | 39.95 ▼5.31 |
Dashboard /wp-admin | 2,225 ▲37 | 5.90 ▲1.01 | 103.45 ▲0.86 | 40.61 ▼2.76 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.00 ▼0.00 | 38.05 ▲3.98 | 35.22 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.09 ▼0.18 | 662.47 ▲16.05 | 51.92 ▼0.61 |
Media Library /wp-admin/upload.php | 1,398 ▲19 | 4.17 ▼0.05 | 96.08 ▼7.10 | 42.51 ▼0.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/magnet/class-wp-widget-klangoo.php+116
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_klangoo
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/magnet/class-wp-widget-klangoo.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/magnet/class-fake-page.php:32
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/magnet/class-wp-widget-klangoo.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Screenshot showing the Magnet WordPress plugin installed and activated.), #2 (The second screenshot shows the settings screen of the \"Magnet\" widgets), #3 (The third screenshot shows a \"Magnet\" plugin placed inside the theme\'s Side Bar)
- Tags: There are too many tags (15 tag instead of maximum 10)
magnet/WP-klangoo.php 92% from 13 tests
The main file in "Magnet" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("magnet.php" instead of "WP-klangoo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin393 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 96 | 90 | 393 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin