89% slideshow-posts

Code Review | Slideshow Posts

WordPress plugin Slideshow Posts scored89%from 54 tests.

About plugin

  • Plugin page: slideshow-posts
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9
  • WordPress version: 6.3.1
  • First release: Feb 20, 2018
  • Latest release: Feb 20, 2018
  • Number of updates: 2
  • Update frequency: every 50.0 days
  • Top authors: wpnook (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /715 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.21MB] [CPU: ▲9.62ms] Passed 4 tests

A check of server-side resources used by Slideshow Posts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1850.08 ▲11.00
Dashboard /wp-admin3.60 ▲0.3066.76 ▲13.89
Posts /wp-admin/edit.php3.60 ▲0.2562.53 ▲11.85
Add New Post /wp-admin/post-new.php6.09 ▲0.20101.55 ▲2.34
Media Library /wp-admin/upload.php3.43 ▲0.2047.59 ▲13.30
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=cw-slideshow3.4651.98
Add New /wp-admin/post-new.php?post_type=cw-slideshow3.6362.89
All Slideshows /wp-admin/edit.php?post_type=cw-slideshow3.5648.95
Slideshow Options /wp-admin/options-general.php?page=cw-slideshow3.4243.47
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=cw-slideshow3.4447.26

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
category_children
widget_theysaidso_widget
CW_Slideshow_Posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Slideshow Posts: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,107 ▲36116.69 ▲2.015.73 ▲3.7342.83 ▼5.96
Dashboard /wp-admin2,399 ▲2117.18 ▲2.24130.65 ▲16.5938.19 ▼10.38
Posts /wp-admin/edit.php2,453 ▲3644.62 ▲2.6357.66 ▲15.5133.10 ▼5.79
Add New Post /wp-admin/post-new.php1,550 ▲623.49 ▲4.86624.05 ▼19.4435.00 ▼19.18
Media Library /wp-admin/upload.php1,594 ▲2065.11 ▲0.8997.73 ▼8.4347.65 ▲3.55
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=cw-slideshow1,8144.4753.8232.26
Add New /wp-admin/post-new.php?post_type=cw-slideshow2,6697.79169.4277.35
All Slideshows /wp-admin/edit.php?post_type=cw-slideshow1,5184.6553.8829.47
Slideshow Options /wp-admin/options-general.php?page=cw-slideshow1,2364.4651.9079.51
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=cw-slideshow1,6824.5153.7829.40

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-comments
    • theysaidso_admin_options
    • CW_Slideshow_Posts
    • widget_theysaidso_widget
    • category_children
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: blog, slideshow, articles, posts

slideshow-posts/cw-slideshow.php 85% from 13 tests

The principal PHP file in "Slideshow Posts" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("slideshow-posts.php" instead of "cw-slideshow.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected646 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP11207412478
JavaScript2292124
Sass18029
CSS22015

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity7.50
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods39
▷ Static methods25.13%
▷ Public methods3487.18%
▷ Protected methods00.00%
▷ Private methods512.82%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 were not PNG files found in your plugin