Benchmarks
Plugin footprint Passed 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.08MB] [CPU: ▼140.13ms] Passed 4 tests
Server-side resources used by As Nice Scroll
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.07 | 40.46 ▲5.24 |
Dashboard /wp-admin | 3.14 ▲0.09 | 47.32 ▼3.09 |
Posts /wp-admin/edit.php | 3.19 ▲0.09 | 46.60 ▼1.62 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 95.88 ▼556.09 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 36.73 ▲0.29 |
As option /wp-admin/themes.php?page=as_options | 3.06 | 32.12 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by As Nice Scroll
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,907 ▲335 | 16.96 ▲1.46 | 22.83 ▲15.43 | 50.24 ▼3.40 |
Dashboard /wp-admin | 3,005 ▲74 | 6.54 ▲0.38 | 149.55 ▼15.90 | 117.83 ▼4.85 |
Posts /wp-admin/edit.php | 2,777 ▲41 | 3.01 ▲0.32 | 71.76 ▼2.39 | 112.96 ▲4.25 |
Add New Post /wp-admin/post-new.php | 1,522 ▼161 | 18.41 ▼0.15 | 376.06 ▼28.74 | 119.00 ▼0.74 |
Media Library /wp-admin/upload.php | 1,842 ▲32 | 5.40 ▲0.36 | 136.83 ▼22.09 | 122.15 ▲4.26 |
As option /wp-admin/themes.php?page=as_options | 1,596 | 2.57 | 61.38 | 103.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/as-nice-scroll/as-nicescroll.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/as-nice-scroll/settings/as_scroll_option.php:24
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/themes.php?page=as_options
- > Javascript (severe) in unknown
/wp-content/plugins/as-nice-scroll/js/as_admin_custom.js?ver=1 15:23 Uncaught TypeError: $(...).wpColorPicker is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 148 tag instead of maximum 10
as-nice-scroll/as-nicescroll.php 92% from 13 tests
The principal PHP file in "As Nice Scroll" v. 1.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("as-nice-scroll.php" instead of "as-nicescroll.php")
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
Good job! No executable or dangerous file extensions detected493 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 46 | 36 | 283 |
JavaScript | 2 | 1 | 10 | 144 |
CSS | 1 | 0 | 0 | 66 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.10MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
settings/img/People.png | 19.91KB | 4.27KB | ▼ 78.54% |
settings/img/github.png | 16.12KB | 2.46KB | ▼ 84.75% |
settings/img/wordpress.png | 20.26KB | 3.38KB | ▼ 83.33% |
settings/img/fiverr.png | 27.87KB | 5.27KB | ▼ 81.10% |
settings/img/right.png | 15.12KB | 1.31KB | ▼ 91.31% |