10% demomentsomtres-image-feed-widget

Code Review | DeMomentSomTres Image Feed Widget

WordPress plugin DeMomentSomTres Image Feed Widget scored10%from 54 tests.

About plugin

  • Plugin page: demomentsomtres-i...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Nov 16, 2013
  • Latest release: May 19, 2014
  • Number of updates: 4
  • Update frequency: every 98.0 days
  • Top authors: marcqueralt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,433 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/demomentsomtres-image-feed-widget/dms3-image-feed-widget.php+229
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼59.23ms] Passed 4 tests

Server-side resources used by DeMomentSomTres Image Feed Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.57 ▼35.25
Dashboard /wp-admin2.05 ▼1.265.62 ▼47.92
Posts /wp-admin/edit.php2.05 ▼1.315.23 ▼52.45
Add New Post /wp-admin/post-new.php2.05 ▼3.845.31 ▼101.31
Media Library /wp-admin/upload.php2.05 ▼1.184.84 ▼33.03

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
widget_image_feed_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for DeMomentSomTres Image Feed Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.35 ▲0.101.53 ▼0.3341.62 ▲0.54
Dashboard /wp-admin2,195 ▲215.54 ▼0.0285.57 ▼1.3341.58 ▼2.58
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0234.31 ▼6.2932.37 ▼6.25
Add New Post /wp-admin/post-new.php1,528 ▼923.51 ▲5.50697.17 ▲14.3356.30 ▼22.36
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0197.97 ▼20.5341.51 ▼6.70

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/demomentsomtres-image-feed-widget/dms3-image-feed-widget.php+229
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_image_feed_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/demomentsomtres-image-feed-widget/dms3-image-feed-widget.php:96

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: rss, rss widget, image widget, widget, feed...

demomentsomtres-image-feed-widget/dms3-image-feed-widget.php 92% from 13 tests

This is the main PHP file of "DeMomentSomTres Image Feed Widget" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("demomentsomtres-image-feed-widget.php" instead of "dms3-image-feed-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin162 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13929162

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity12.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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin