Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.66MB] [CPU: ▼16.12ms] Passed 4 tests
Server-side resources used by NX Portfolio Slider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.33 ▲1.86 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.60 ▼3.25 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.56 ▲4.70 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.76 | 33.29 ▼67.78 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 43.00 ▲11.25 |
Slider Settings /wp-admin/edit.php?post_type=nx_portfolio_slider&page=nx_slider_settings | 3.28 | 31.25 |
All Slider /wp-admin/edit.php?post_type=nx_portfolio_slider | 3.31 | 36.40 |
Add New /wp-admin/post-new.php?post_type=nx_portfolio_slider | 3.12 | 33.95 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=nx_portfolio_slider | 3.26 | 49.75 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 12 new options
New WordPress options |
---|
nx_slider_navbar |
nx_slider_loop |
category_children |
widget_recent-comments |
nx_slider_autoplay |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
NX Portfolio Slider: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲204 | 14.23 ▼0.06 | 8.15 ▲6.51 | 40.91 ▲0.66 |
Dashboard /wp-admin | 2,241 ▲49 | 5.84 ▲0.88 | 100.56 ▼10.54 | 80.17 ▲36.17 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.02 ▲0.03 | 35.15 ▼1.85 | 34.33 ▲2.02 |
Add New Post /wp-admin/post-new.php | 1,701 ▲178 | 21.80 ▼1.44 | 756.47 ▲73.78 | 52.32 ▲0.76 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.16 ▼0.02 | 107.13 ▲4.23 | 84.31 ▲39.86 |
Slider Settings /wp-admin/edit.php?post_type=nx_portfolio_slider&page=nx_slider_settings | 953 | 2.07 | 25.92 | 29.28 |
All Slider /wp-admin/edit.php?post_type=nx_portfolio_slider | 1,141 | 1.95 | 36.42 | 31.51 |
Add New /wp-admin/post-new.php?post_type=nx_portfolio_slider | 2,335 | 7.61 | 169.50 | 130.42 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=nx_portfolio_slider | 1,484 | 2.15 | 31.68 | 48.16 |
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
- This plugin did not uninstall successfully, leaving 12 options in the database
- widget_recent-comments
- can_compress_scripts
- nx_portfolio_slider_installation_time
- nx_slider_navbar
- nx_slider_autoplay
- widget_theysaidso_widget
- category_children
- widget_recent-posts
- nx_slider_autoplay_timeout
- nx_slider_loop
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=nx_portfolio_slider
- > Notice in wp-content/plugins/nx-portfolio-slider/cpt/nx-portfolio-slider.php+72
Undefined index: portfolio_meta_box_cb_nonce
SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/nx-portfolio-slider/public/partials/nx-portfolio-slider-public-display.php
- > /wp-content/plugins/nx-portfolio-slider/admin/partials/nx-portfolio-slider-admin-display.php
- 4× 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/nx-portfolio-slider/cpt/nx-portfolio-slider.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function register_setting() in wp-content/plugins/nx-portfolio-slider/includes/nx-portflio-slider-options.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/nx-portfolio-slider/shortcode/portfolio-slider.php:90
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/nx-portfolio-slider/admin/partials/slider-settings.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: portfolio sliders, project slider, carousel slider, slider
nx-portfolio-slider/nx-portfolio-slider.php Passed 13 tests
This is the main PHP file of "NX Portfolio Slider" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
59 characters long description:
Make portfolio, project slider without any coding knowladge
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 plugin622 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 165 | 545 | 409 |
CSS | 5 | 23 | 27 | 196 |
JavaScript | 4 | 4 | 65 | 9 |
SVG | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 3 | 11.54% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/hoverleft.png | 1.06KB | 0.64KB | ▼ 39.80% |
public/img/hoverarrow.png | 0.93KB | 0.57KB | ▼ 38.63% |