Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.55ms] Passed 4 tests
Analyzing server-side resources used by Filter WP Api
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.28 ▲0.08 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.78 ▼3.26 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.90 ▼2.48 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.11 ▼12.53 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.39 ▲0.47 |
Filter Rest API /wp-admin/options-general.php?page=filter-wp-api | 3.26 | 40.71 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Filter WP Api: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▼0.01 | 1.93 ▲0.22 | 44.05 ▲0.84 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▼0.05 | 91.20 ▲0.27 | 41.36 ▼7.61 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.02 | 37.97 ▼0.60 | 35.22 ▼3.04 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.03 ▼0.15 | 681.74 ▲38.80 | 59.05 ▲8.17 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.23 ▼0.16 | 110.52 ▲1.48 | 48.93 ▲2.98 |
Filter Rest API /wp-admin/options-general.php?page=filter-wp-api | 936 | 2.00 | 25.17 | 27.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=filter-wp-api
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=filter-wp-api
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function flush_rewrite_rules() in wp-content/plugins/filter-wp-api/admin/partials/filter-wp-api-admin-display.php:18
- > PHP Fatal error
Uncaught Error: Class 'Filter_WP_Api_Admin' not found in wp-content/plugins/filter-wp-api/admin/settings/class-filter-wp-api-settings.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: wp-json, api, filter
filter-wp-api/filter-wp-api.php Passed 13 tests
The main PHP script in "Filter WP Api" version 1.1.0 is automatically included on every request by WordPress
58 characters long description:
A wordpress plugin that clears huge fields of WP Rest API.
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 plugin414 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 140 | 495 | 408 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 6.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 88.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 11.43% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
PNG images were not found in this plugin