Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.85ms] Passed 4 tests
A check of server-side resources used by Epnb Featured Image Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.15 ▼8.49 |
Dashboard /wp-admin | 3.32 ▲0.01 | 50.53 ▲0.43 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.32 ▼0.86 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.37 ▲4.83 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.94 ▼2.48 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_epnb_featured_image_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Epnb Featured Image Widget: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.37 ▼0.63 | 4.17 ▲2.38 | 38.55 ▼6.44 |
Dashboard /wp-admin | 2,203 ▲15 | 5.92 ▲0.04 | 108.39 ▲1.70 | 38.98 ▼6.11 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.02 | 40.64 ▲4.98 | 35.85 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,519 ▼15 | 23.15 ▼0.25 | 594.62 ▼14.89 | 52.10 ▲3.48 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.18 ▼0.03 | 95.22 ▼4.51 | 43.25 ▲2.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_epnb_featured_image_widget
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/epnb-featured-image-widget/epnb-featured-image-widget.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
7 plugin tags: thumbnail, picture, featured, photo, image...
epnb-featured-image-widget/epnb-featured-image-widget.php Passed 13 tests
The main file in "Epnb Featured Image Widget" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
38 characters long description:
Widget pour afficher l'image à la une
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected106 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 10 | 13 | 78 |
PO File | 1 | 6 | 6 | 28 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin