Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼0.20ms] Passed 4 tests
This is a short check of server-side resources used by Set All First Images As Featured
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.41 ▼3.60 |
Dashboard /wp-admin | 3.37 ▲0.06 | 48.88 ▲1.83 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 51.57 ▼0.21 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 99.43 ▲3.36 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.30 ▲1.20 |
First images as featured /wp-admin/tools.php?page=sfif-options | 3.27 | 33.63 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Set All First Images As Featured
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.48 ▲0.08 | 1.71 ▼0.10 | 42.18 ▼7.96 |
Dashboard /wp-admin | 2,210 ▲22 | 4.88 ▼0.03 | 98.17 ▼2.37 | 39.42 ▼3.66 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.00 ▲0.01 | 39.43 ▼4.68 | 34.72 ▼2.21 |
Add New Post /wp-admin/post-new.php | 1,517 ▼18 | 17.60 ▼3.66 | 626.50 ▼23.61 | 63.51 ▲15.76 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.25 ▲0.03 | 95.23 ▼24.96 | 39.43 ▼5.96 |
First images as featured /wp-admin/tools.php?page=sfif-options | 926 | 2.08 | 26.17 | 32.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/set-all-first-images-as-featured/includes/views/admin-options-page.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/tools.php?page=sfif-options
- > Network (severe)
wp-content/plugins/set-all-first-images-as-featured//includes/images/ajax-loader-xs.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: featured images
set-all-first-images-as-featured/set-all-first-images-as-featured.php Passed 13 tests
The entry point to "Set All First Images As Featured" version 1.2.2 is a PHP file that has certain tags in its header comment area
85 characters long description:
Sets the first image of your posts, pages or custom post types as the featured image.
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
No dangerous file extensions were detected589 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 222 | 113 | 317 |
PO File | 2 | 56 | 58 | 169 |
CSS | 1 | 15 | 0 | 52 |
JavaScript | 1 | 37 | 14 | 51 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 17 | |
▷ Static methods | 12 | 70.59% |
▷ Public methods | 10 | 58.82% |
▷ Protected methods | 3 | 17.65% |
▷ Private methods | 4 | 23.53% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin