Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/gimme-filter/admin/class-gimme-filter-options.php+122
Invalid argument supplied for foreach()
Server metrics [RAM: ▼1.96MB] [CPU: ▼56.49ms] Passed 4 tests
This is a short check of server-side resources used by Gimme Filter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 6.13 ▼39.17 |
Dashboard /wp-admin | 2.05 ▼1.26 | 8.61 ▼46.96 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 7.70 ▼35.92 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 7.36 ▼103.90 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.85 ▼28.47 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Gimme Filter: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲154 | 13.81 ▼0.48 | 8.76 ▲6.56 | 43.06 ▲0.32 |
Dashboard /wp-admin | 2,222 ▲37 | 5.89 ▲0.84 | 111.20 ▼7.13 | 47.06 ▲5.78 |
Posts /wp-admin/edit.php | 2,105 ▲19 | 1.99 ▲0.00 | 41.75 ▲5.52 | 54.41 ▲21.28 |
Add New Post /wp-admin/post-new.php | 1,532 ▼2 | 22.96 ▼0.17 | 687.19 ▼31.45 | 52.95 ▼9.96 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.21 ▲0.02 | 107.05 ▲6.31 | 47.15 ▲1.02 |
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
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/gimme-filter/admin/class-gimme-filter-options.php+122
Invalid argument supplied for foreach()
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/gimme-filter/admin/class-gimme-filter-option-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/gimme-filter/admin/class-gimme-filter-options.php:74
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gimme-filter/includes/class-gimme-filter-widget.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Donate link: Invalid url: ""
- Screenshots: Add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
gimme-filter/gimmefilter.php 92% from 13 tests
The primary PHP file in "Gimme Filter" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gimme-filter.php" instead of "gimmefilter.php")
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
There were no executable files found in this plugin648 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 312 | 437 | 498 |
PO File | 1 | 26 | 26 | 70 |
CSS | 2 | 15 | 0 | 63 |
JavaScript | 1 | 8 | 0 | 17 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 42 | |
▷ Static methods | 19 | 45.24% |
▷ Public methods | 27 | 64.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 35.71% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin