Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/cresta-post-widget/cresta-post-widget.php+317
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼54.76ms] Passed 4 tests
Analyzing server-side resources used by Cresta Post Widget FREE
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.35 ▼38.21 |
Dashboard /wp-admin | 2.05 ▼1.26 | 7.43 ▼44.89 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.10 ▼42.00 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.31 ▼93.95 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.24 ▼27.00 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_crestapostwidget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cresta Post Widget FREE
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.34 ▲0.02 | 1.73 ▲0.05 | 46.14 ▼1.30 |
Dashboard /wp-admin | 2,197 ▲23 | 5.62 ▲0.04 | 99.25 ▲12.37 | 40.97 ▲4.38 |
Posts /wp-admin/edit.php | 2,105 ▲2 | 1.98 ▼0.04 | 35.92 ▼6.80 | 34.46 ▼3.80 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 22.98 ▼0.13 | 656.22 ▼13.30 | 52.96 ▼14.97 |
Media Library /wp-admin/upload.php | 1,402 ▲5 | 4.16 ▲0.01 | 103.15 ▲1.28 | 47.33 ▲4.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/cresta-post-widget/cresta-post-widget.php+317
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_crestapostwidget
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cresta-post-widget/cresta-post-widget.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (The widget options), #2 (Example of Cresta Post Widget FREE on Semplicemente Theme), #3 (Example of Cresta Post Widget FREE on Twenty Fourteen Theme)
cresta-post-widget/cresta-post-widget.php Passed 13 tests
"Cresta Post Widget FREE" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
131 characters long description:
Widget for show all posts or filter by category. Many options available including show thumbnail, excerpt, date and comments count.
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
Everything looks great! No dangerous files found in this plugin297 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 24 | 18 | 279 |
CSS | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 8.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cresta-post-widget-free-logo.png | 2.33KB | 2.53KB | 0.00% |
images/no-image-default.png | 0.58KB | 0.64KB | 0.00% |