Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/newest-posts/newest-posts.php+280
Function create_function() is deprecated
Server metrics [RAM: ▼1.84MB] [CPU: ▼51.87ms] Passed 4 tests
A check of server-side resources used by Newest Posts Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.31 | 5.17 ▼37.62 |
Dashboard /wp-admin | 2.17 ▼1.13 | 5.39 ▼43.73 |
Posts /wp-admin/edit.php | 2.17 ▼1.18 | 6.45 ▼42.08 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.72 | 6.82 ▼84.06 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 5.42 ▼33.31 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_np-widget |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Newest Posts Widget: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.22 ▼1.36 | 1.82 ▼0.20 | 42.38 ▼3.44 |
Dashboard /wp-admin | 2,206 ▲15 | 4.85 ▼0.07 | 106.37 ▼10.29 | 38.14 ▼4.36 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▼0.06 | 39.85 ▲3.69 | 35.86 ▲1.29 |
Add New Post /wp-admin/post-new.php | 1,533 ▼5 | 23.17 ▼0.08 | 673.19 ▼18.09 | 50.61 ▼10.83 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.23 ▼0.03 | 95.84 ▼18.07 | 40.36 ▼8.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/newest-posts/newest-posts.php+280
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-posts
- widget_np-widget
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The widget configuration dialog.), #2 (Front end of the widget showing full features of the plugin in a default WordPress Theme.), #3 (Newest Posts list showing post title only.)
newest-posts/newest-posts.php Passed 13 tests
The main file in "Newest Posts Widget" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
91 characters long description:
A widget that display the new posts of your site with Thumbnail, Excerpt, Date etc options.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin231 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 49 | 42 | 189 |
CSS | 1 | 1 | 4 | 42 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin