10% cresta-post-widget

Code Review | Cresta Post Widget FREE

WordPress plugin Cresta Post Widget FREE scored10%from 54 tests.

About plugin

  • Plugin page: cresta-post-widget
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.6
  • WordPress version: 6.3.1
  • First release: Jul 29, 2014
  • Latest release: Jul 30, 2014
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: CrestaProject (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /2,368 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.35 ▼38.21
Dashboard /wp-admin2.05 ▼1.267.43 ▼44.89
Posts /wp-admin/edit.php2.05 ▼1.315.10 ▼42.00
Add New Post /wp-admin/post-new.php2.05 ▼3.845.31 ▼93.95
Media Library /wp-admin/upload.php2.05 ▼1.186.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.34 ▲0.021.73 ▲0.0546.14 ▼1.30
Dashboard /wp-admin2,197 ▲235.62 ▲0.0499.25 ▲12.3740.97 ▲4.38
Posts /wp-admin/edit.php2,105 ▲21.98 ▼0.0435.92 ▼6.8034.46 ▼3.80
Add New Post /wp-admin/post-new.php1,528 ▲222.98 ▼0.13656.22 ▼13.3052.96 ▼14.97
Media Library /wp-admin/upload.php1,402 ▲54.16 ▲0.01103.15 ▲1.2847.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

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)
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP12418279
CSS10018

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 code0.16
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity8.75
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/cresta-post-widget-free-logo.png2.33KB2.53KB0.00%
images/no-image-default.png0.58KB0.64KB0.00%