Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.05ms] Passed 4 tests
This is a short check of server-side resources used by Anchor smooth scroll
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 43.03 ▼1.93 |
Dashboard /wp-admin | 3.42 ▲0.12 | 52.60 ▲6.33 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 47.71 ▲0.35 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 86.07 ▼3.37 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.19 ▼3.23 |
Anchor Smooth Scroll /wp-admin/options-general.php?page=anchor-smooth-scroll-admin | 3.33 | 32.38 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options |
---|
anchor_smooth_scroll |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Anchor smooth scroll: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲171 | 13.71 ▼0.84 | 9.56 ▲7.59 | 43.55 ▲2.57 |
Dashboard /wp-admin | 2,209 ▲21 | 5.84 ▲0.93 | 97.01 ▼4.74 | 38.33 ▼4.82 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.04 ▲0.07 | 34.09 ▼2.09 | 33.71 ▼5.74 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 17.79 ▼5.24 | 597.40 ▼72.42 | 40.58 ▼24.46 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.26 ▼0.02 | 100.29 ▼10.64 | 43.04 ▼1.48 |
Anchor Smooth Scroll /wp-admin/options-general.php?page=anchor-smooth-scroll-admin | 900 | 2.07 | 24.22 | 28.26 |
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
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (The Anchor smooth scroll settings page), #2 (Insert anchor button), #3 (Adding a new anchor)
anchor-smooth-scroll/anchor-smooth-scroll.php Passed 13 tests
The entry point to "Anchor smooth scroll" version 1.0.2 is a PHP file that has certain tags in its header comment area
58 characters long description:
Аdds a smooth scroll to the anchors in the WordPress menu
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,496 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 280 | 351 | 852 |
JavaScript | 4 | 192 | 84 | 498 |
JSON | 3 | 1 | 0 | 72 |
Markdown | 1 | 53 | 0 | 70 |
CSS | 1 | 1 | 4 | 3 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 7 | 10.00% |
▷ Public methods | 66 | 94.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.71% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 14 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 14 | 100.00% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 12.70KB | 6.38KB | ▼ 49.76% |
screenshot-1.png | 55.68KB | 31.17KB | ▼ 44.02% |
screenshot-2.png | 23.10KB | 12.47KB | ▼ 45.99% |