10% zaki-post-slide-widget

Code Review | Zaki Post Slide Widget

WordPress plugin Zaki Post Slide Widget scored 10% from 54 tests.

About plugin

  • Plugin page: zaki-post-slide-w...
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.2
  • WordPress version: 6.3.1
  • First release: Apr 8, 2013
  • Latest release: Jul 30, 2013
  • Number of updates: 11
  • Update frequency: every 10.6 days
  • Top authors: r.conte (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,658 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/zaki-post-slide-widget/postslide.php+22
    Methods with the same name as their class will not be constructors in a future version of PHP; zakiPostSlideWidget has a deprecated constructor

Server metrics [RAM: ▼1.71MB] [CPU: ▼51.61ms] Passed 4 tests

A check of server-side resources used by Zaki Post Slide Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.188.98 ▼37.15
Dashboard /wp-admin2.29 ▼1.0112.29 ▼36.83
Posts /wp-admin/edit.php2.29 ▼1.0610.74 ▼40.91
Add New Post /wp-admin/post-new.php2.29 ▼3.599.53 ▼91.54
Media Library /wp-admin/upload.php2.29 ▼0.949.28 ▼24.68

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_zakipostslidewidget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Zaki Post Slide Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲13514.01 ▼0.378.28 ▲6.4343.55 ▼0.73
Dashboard /wp-admin2,206 ▲185.91 ▲0.80111.15 ▼4.2941.91 ▼6.33
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0534.52 ▼2.4934.39 ▲2.76
Add New Post /wp-admin/post-new.php1,533 ▼023.51 ▲0.49674.21 ▲74.7269.43 ▲10.70
Media Library /wp-admin/upload.php1,385 ▼64.25 ▼0.0198.53 ▼4.3642.54 ▼1.13

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
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in zakiPostSlideWidget is deprecated since version 4.3.0! Use __construct() instead.
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_zakipostslidewidget
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zaki-post-slide-widget/postslide.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
5 plugin tags: posts, news, scroller, slider, bxslider

zaki-post-slide-widget/postslide.php 85% from 13 tests

The main PHP script in "Zaki Post Slide Widget" version 1.3.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 232 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("zaki-post-slide-widget.php" instead of "postslide.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
Everything looks great! No dangerous files found in this plugin375 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12524374
JavaScript1091

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity61.00
▷ Minimum class complexity61.00
▷ Maximum class complexity61.00
Average method complexity13.00
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected