84% numix-post-slider

Code Review | Numix Post Slider

WordPress plugin Numix Post Slider scored84%from 54 tests.

About plugin

  • Plugin page: numix-post-slider
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.0
  • WordPress version: 6.3.1
  • First release: Jun 14, 2014
  • Latest release: Sep 5, 2014
  • Number of updates: 17
  • Update frequency: every 4.9 days
  • Top authors: numixtech (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

200+ active /13,786 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼5.32ms] Passed 4 tests

This is a short check of server-side resources used by Numix Post Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.91 ▲0.41
Dashboard /wp-admin3.43 ▲0.1350.79 ▼2.55
Posts /wp-admin/edit.php3.55 ▲0.1955.26 ▲0.92
Add New Post /wp-admin/post-new.php6.02 ▲0.1387.71 ▼20.05
Media Library /wp-admin/upload.php3.36 ▲0.1346.86 ▲8.89

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 40 new files
Database: 1 new table, 7 new options
New tables
wp_numix_post_slider_lite
New WordPress options
widget_recent-comments
npts_db_version
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Numix Post Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲12913.63 ▼0.7310.40 ▲8.6939.86 ▼4.53
Dashboard /wp-admin2,207 ▲275.56 ▼0.0790.41 ▲0.2973.39 ▲29.88
Posts /wp-admin/edit.php2,118 ▲181.98 ▼0.0738.49 ▼3.7134.75 ▼2.49
Add New Post /wp-admin/post-new.php1,692 ▲16421.78 ▼1.42731.01 ▲49.2646.98 ▼12.15
Media Library /wp-admin/upload.php1,415 ▲154.15 ▼0.04113.75 ▼2.8376.41 ▲27.91

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
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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
Good news, no errors were detected

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 fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/numix-post-slider/admin/views/numixslider-options.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/numix-post-slider/admin/views/admin.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/numix-post-slider/admin/views/edit-slider.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 40 tag instead of maximum 10
You can look at the official readme.txt

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

This is the main PHP file of "Numix Post Slider" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
58 characters long description:
Variable width and infinite post slider carousel for posts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin5,024 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript76206703,011
CSS72491201,141
PHP8204395872

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity39.50
▷ Minimum class complexity35.00
▷ Maximum class complexity44.00
Average method complexity3.66
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods724.14%
▷ Public methods2586.21%
▷ Protected methods00.00%
▷ Private methods413.79%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.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
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/numix-admin-icon.png0.67KB0.48KB▼ 27.57%
admin/assets/images/numix_slider_premium.png7.25KB3.90KB▼ 46.24%
public/assets/images/caption-bg.png0.12KB0.09KB▼ 20.66%
admin/assets/images/dropdown.png3.51KB0.10KB▼ 97.16%
public/assets/images/slide_right.png0.57KB0.58KB0.00%