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
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wikipedia-widget/wikipedia-widget.php+236
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼49.35ms] Passed 4 tests
An overview of server-side resources used by Wikipedia Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 4.58 ▼34.60 |
Dashboard /wp-admin | 2.12 ▼1.18 | 6.13 ▼39.68 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 6.99 ▼36.93 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 7.28 ▼86.19 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 5.36 ▼26.84 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_wikipedia_widget |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wikipedia Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.35 ▼0.02 | 1.70 ▼0.01 | 38.79 ▼1.90 |
Dashboard /wp-admin | 2,195 ▲15 | 5.63 ▼0.04 | 93.57 ▲6.98 | 39.62 ▼7.03 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.03 ▲0.05 | 42.07 ▲7.01 | 39.20 ▲1.86 |
Add New Post /wp-admin/post-new.php | 1,526 ▼12 | 23.19 ▼0.00 | 672.14 ▲4.15 | 82.32 ▲27.46 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.41 ▲0.24 | 96.49 ▼4.90 | 44.17 ▼2.33 |
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
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/wikipedia-widget/wikipedia-widget.php+236
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_wikipedia_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
Good news, no errors were detected
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/wikipedia-widget/wikipedia-widget.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wikipedia-widget ===
)
wikipedia-widget/wikipedia-widget.php Passed 13 tests
This is the main PHP file of "Wikipedia Widget" version 0.13.12, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
120 characters long description:
Shows a simple Ajax based Wikipedia search-formular and the results for the current post/page title or default keywords.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin232 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 63 | 152 |
JavaScript | 1 | 6 | 1 | 60 |
CSS | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 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 | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected