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
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.27ms] Passed 4 tests
Server-side resources used by NG Animated Slider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 39.30 ▲5.31 |
Dashboard /wp-admin | 3.35 ▲0.00 | 46.63 ▼10.84 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.57 ▲1.24 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 77.72 ▼16.91 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 30.99 ▼6.57 |
Slider categories /wp-admin/edit-tags.php?taxonomy=slider_category&post_type=slider | 3.36 | 34.78 |
Add New Slider /wp-admin/post-new.php?post_type=slider | 3.39 | 50.78 |
All Sliders /wp-admin/edit.php?post_type=slider | 3.31 | 35.56 |
Server storage [IO: ▲1.24MB] [DB: ▲0.31MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for NG Animated Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲199 | 13.37 ▼1.41 | 9.74 ▲8.14 | 47.55 ▲5.60 |
Dashboard /wp-admin | 2,227 ▲47 | 5.58 ▲0.01 | 81.93 ▼14.06 | 40.58 ▼3.51 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.02 ▲0.06 | 40.02 ▲3.62 | 35.65 ▲1.75 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 22.99 ▲1.96 | 680.70 ▼24.47 | 52.78 ▼0.13 |
Media Library /wp-admin/upload.php | 1,435 ▲38 | 4.19 ▼0.01 | 95.49 ▼13.82 | 44.60 ▲0.64 |
Slider categories /wp-admin/edit-tags.php?taxonomy=slider_category&post_type=slider | 1,309 | 2.12 | 25.91 | 28.79 |
Add New Slider /wp-admin/post-new.php?post_type=slider | 2,352 | 7.82 | 170.78 | 62.81 |
All Sliders /wp-admin/edit.php?post_type=slider | 1,108 | 1.96 | 28.77 | 26.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/ng-animated-slider/admin/partials/ng-animated-slider-admin-display.php
- > /wp-content/plugins/ng-animated-slider/public/partials/ng-animated-slider-public-display.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ng-animated-slider/includes/ng-custom-functions.php:535
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ng-animated-slider/includes/ng-custom-metabox.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ng-animated-slider/inc/customizer-sections.php:123
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ng-animated-slider/includes/ng-custom-post-type-register.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== ng-animated-slider ===
) - Donate link: Invalid url: "paypal.me/pridethemes"
ng-animated-slider/ng-animated-slider.php 92% from 13 tests
The main PHP file in "NG Animated Slider" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 221 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin12,559 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 116 | 45 | 9,607 |
JavaScript | 12 | 94 | 199 | 1,255 |
PHP | 18 | 276 | 580 | 1,012 |
SVG | 1 | 0 | 0 | 685 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin