Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼11.14ms] Passed 4 tests
An overview of server-side resources used by Elegant Posts Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 36.60 ▼2.34 |
Dashboard /wp-admin | 3.43 ▲0.09 | 48.10 ▼17.78 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 49.07 ▲1.00 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 91.27 ▼23.73 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.20 ▼0.69 |
Elegant Posts Widget /wp-admin/options-general.php?page=templatebyte-epw | 3.32 | 33.51 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_templatebyte-epw-post |
Browser metrics Passed 4 tests
A check of browser resources used by Elegant Posts Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.13 ▼1.14 | 1.72 ▼0.09 | 41.64 ▼2.45 |
Dashboard /wp-admin | 2,207 ▲18 | 5.79 ▲0.77 | 104.67 ▼18.84 | 39.53 ▼5.85 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.02 ▼0.00 | 39.24 ▲3.95 | 33.94 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.21 ▲5.13 | 667.12 ▲35.22 | 64.38 ▼3.90 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.28 ▲0.09 | 104.70 ▲8.62 | 43.36 ▲1.11 |
Elegant Posts Widget /wp-admin/options-general.php?page=templatebyte-epw | 933 | 2.04 | 22.86 | 29.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_templatebyte-epw-post
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require(): Failed opening required 'TEMPLATEBYTE_EPW_DIRinc/class-templatebyte-epw-method.php' (include_path='.:/usr/share/php') in wp-content/plugins/elegant-posts-widget/inc/class-templatebyte-epw.php on line 44
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/elegant-posts-widget/inc/settings-page.php:2
- > PHP Warning
require(TEMPLATEBYTE_EPW_DIRinc/class-templatebyte-epw-method.php): failed to open stream: No such file or directory in wp-content/plugins/elegant-posts-widget/inc/class-templatebyte-epw.php on line 44
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/elegant-posts-widget/inc/class-templatebyte-epw-widget.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/elegant-posts-widget/elegant-posts-widget.php:33
- > PHP Warning
Use of undefined constant TEMPLATEBYTE_EPW_DIR - assumed 'TEMPLATEBYTE_EPW_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/elegant-posts-widget/inc/class-templatebyte-epw.php on line 44
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: sidebar, post, widget, elegant
elegant-posts-widget/elegant-posts-widget.php Passed 13 tests
This is the main PHP file of "Elegant Posts Widget" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
58 characters long description:
Adds a widget to display the posts on your blog elegantly.
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
Everything looks great! No dangerous files found in this plugin757 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 202 | 304 | 512 |
CSS | 2 | 35 | 15 | 227 |
JavaScript | 1 | 13 | 17 | 18 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 79.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 20.69% |
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
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