83% post-type-slider-for-customizr

Code Review | Post Type Slider for Customizr

WordPress plugin Post Type Slider for Customizr scored83%from 54 tests.

About plugin

  • Plugin page: post-type-slider-...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4.1
  • WordPress version: 6.3.1
  • First release: Jan 12, 2016
  • Latest release: Jan 12, 2016
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: kharisblank (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /3,001 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.99ms] Passed 4 tests

Analyzing server-side resources used by Post Type Slider for Customizr
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.23 ▲0.54
Dashboard /wp-admin3.32 ▲0.0263.19 ▲8.69
Posts /wp-admin/edit.php3.37 ▲0.0248.59 ▼1.93
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.80 ▼4.88
Media Library /wp-admin/upload.php3.24 ▲0.0237.98 ▲2.33
CPT Customizr Slider /wp-admin/options-general.php?page=risbl_slider_customizr_settings3.1930.09

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Type Slider for Customizr
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.35 ▲0.052.03 ▼0.1445.21 ▲0.46
Dashboard /wp-admin2,206 ▲325.63 ▼0.0296.71 ▲1.1342.67 ▼1.26
Posts /wp-admin/edit.php2,109 ▲92.18 ▲0.1833.91 ▼7.1732.94 ▼5.66
Add New Post /wp-admin/post-new.php1,533 ▼223.14 ▲5.03643.29 ▲29.2148.34 ▼14.19
Media Library /wp-admin/upload.php1,408 ▲144.26 ▲0.0798.46 ▼4.5745.18 ▼4.09
CPT Customizr Slider /wp-admin/options-general.php?page=risbl_slider_customizr_settings9022.0429.7728.41

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=risbl_slider_customizr_settings
    • > Notice in wp-content/plugins/post-type-slider-for-customizr/class-admin.php+138
    Trying to access array offset on value of type bool

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% 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
3 plugin tags: customizr, slider, post type

post-type-slider-for-customizr/risbl-post-type-slider-for-customizr.php 77% from 13 tests

"Post Type Slider for Customizr" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; 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 ("post-type-slider-for-customizr.php" instead of "risbl-post-type-slider-for-customizr.php")
  • Domain Path: The domain path folder was not found ("/lang/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected591 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3203157424
PO File1283083
JavaScript118433
Sass13231
CSS11020

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity16.00
▷ Minimum class complexity11.00
▷ Maximum class complexity21.00
Average method complexity3.73
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected