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.19MB] [CPU: ▼14.91ms] Passed 4 tests
Server-side resources used by REST API Featured Image
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.13 | 43.46 ▲4.61 |
Dashboard /wp-admin | 3.53 ▲0.18 | 51.72 ▼1.60 |
Posts /wp-admin/edit.php | 3.58 ▲0.18 | 52.84 ▼4.39 |
Add New Post /wp-admin/post-new.php | 4.76 ▼1.17 | 45.11 ▼58.24 |
Media Library /wp-admin/upload.php | 3.39 ▲0.12 | 40.82 ▲5.24 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
wpfms_post_types |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by REST API Featured Image
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲46 | 14.72 ▲0.46 | 1.82 ▲0.06 | 45.04 ▼1.03 |
Dashboard /wp-admin | 2,216 ▲39 | 5.61 ▲0.08 | 87.40 ▼2.53 | 39.10 ▼5.33 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.00 ▼0.03 | 39.57 ▲0.10 | 34.86 ▼5.43 |
Add New Post /wp-admin/post-new.php | 1,541 ▲4 | 23.05 ▲4.72 | 694.44 ▲81.97 | 54.47 ▼9.18 |
Media Library /wp-admin/upload.php | 1,412 ▲21 | 4.29 ▲0.12 | 98.98 ▼0.27 | 45.04 ▲1.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
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 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
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/rest-api-featured-image/src/WPAdminPage/pages/footer.admin.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/rest-api-featured-image/src/WPAdminPage/pages/header.admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/rest-api-featured-image/src/Admin/pages/api-featured-media-src/api-featured-media-src.admin.php:38
- > PHP Fatal error
Uncaught Error: Class 'SimFeaturedMediaSrc\\WPAdminPage\\AdminPage' not found in wp-content/plugins/rest-api-featured-image/src/Admin/FeaturedMediaSrcAdmin.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
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: rest-api, api, json, thumbnail, featured image...
rest-api-featured-image/api-featured-image.php 69% from 13 tests
This is the main PHP file of "REST API Featured Image" version 0.7.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("rest-api-featured-image.php" instead of "api-featured-image.php")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,468 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 221 | 734 | 985 |
Markdown | 2 | 78 | 0 | 350 |
CSS | 1 | 15 | 2 | 129 |
HTML | 3 | 0 | 0 | 3 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 11.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 2 | 33.33% |
Methods | 74 | |
▷ Static methods | 9 | 12.16% |
▷ Public methods | 67 | 90.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 9.46% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 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