84% zp-post-slider

Code Review | ZP Post Slider

WordPress plugin ZP Post Slider scored84%from 54 tests.

About plugin

  • Plugin page: zp-post-slider
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Sep 14, 2016
  • Latest release: Sep 15, 2016
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: floroxmar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,226 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.47ms] Passed 4 tests

A check of server-side resources used by ZP Post Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.38 ▼3.39
Dashboard /wp-admin3.31 ▲0.0044.07 ▼7.50
Posts /wp-admin/edit.php3.36 ▲0.0043.73 ▼4.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.37 ▼6.63
Media Library /wp-admin/upload.php3.23 ▲0.0037.02 ▲5.60

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

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

Browser metrics Passed 4 tests

Checking browser requirements for ZP Post Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.56 ▼1.091.68 ▼0.1238.43 ▼4.52
Dashboard /wp-admin2,206 ▲154.83 ▼0.07101.99 ▼12.8239.32 ▼5.98
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0137.11 ▲0.7933.01 ▼2.33
Add New Post /wp-admin/post-new.php1,514 ▼1917.58 ▼5.53682.07 ▲27.2354.01 ▲6.30
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.0291.69 ▼5.6940.13 ▼4.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/zp-post-slider/include/zpps-post-slider-widget.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/zp-post-slider/include/zpps-carousel-widget.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: carousel, post slider, slider, post carousel

zp-post-slider/zp-post-slider.php Passed 13 tests

The main file in "ZP Post Slider" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
132 characters long description:
ZP Post Slider is a simple plugin that will display your post in a slider or carousel form. You can display all posts or by category

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
Good job! No executable or dangerous file extensions detected4,694 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32523763,192
CSS31254841
PHP3169149559
PO File14143102

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity26.50
▷ Minimum class complexity26.00
▷ Maximum class complexity27.00
Average method complexity6.10
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin