83% wp-slider-images-from-posts

Code Review | Wp Slider images from posts

WordPress plugin Wp Slider images from posts scored83%from 54 tests.

About plugin

  • Plugin page: wp-slider-images-...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 6.3.1
  • First release: Jul 23, 2015
  • Latest release: Oct 19, 2017
  • Number of updates: 23
  • Update frequency: every 35.6 days
  • Top authors: vovamik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,037 total downloads

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.02MB] [CPU: ▼9.48ms] Passed 4 tests

An overview of server-side resources used by Wp Slider images from posts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.15 ▼2.21
Dashboard /wp-admin3.34 ▼0.0146.81 ▼14.41
Posts /wp-admin/edit.php3.39 ▲0.0347.55 ▼3.10
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.67 ▼18.18
Media Library /wp-admin/upload.php3.26 ▲0.0334.78 ▲0.94

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_text_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Wp Slider images from posts
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.21 ▼1.301.83 ▲0.0346.99 ▲8.42
Dashboard /wp-admin2,206 ▲204.85 ▼0.07110.45 ▼0.1542.66 ▼0.63
Posts /wp-admin/edit.php2,092 ▼02.06 ▲0.0539.56 ▼1.3935.68 ▼0.78
Add New Post /wp-admin/post-new.php1,530 ▼1223.29 ▲5.21649.67 ▲20.4562.14 ▲16.02
Media Library /wp-admin/upload.php1,388 ▲34.16 ▼0.07103.16 ▲1.2346.64 ▲2.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_text_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-slider-images-from-posts/wp-slider-images-from-posts.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 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add descriptions for these screenshots #0, #0 in wp-slider-images-from-posts/assets to your readme.txt
  • Screenshots: These screenshots do not have images: #1 (The widget), #2 (Plugin settings page)
The official readme.txt is a good inspiration

wp-slider-images-from-posts/wp-slider-images-from-posts.php 92% from 13 tests

Analyzing the main PHP file in "Wp Slider images from posts" version 2.1
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 211 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin191 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11710128
CSS10040
PO File151023

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity8.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%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin