Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/better-anchor-links/auto-anchor-list.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; mwm_aalLoader has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼51.53ms] Passed 4 tests
An overview of server-side resources used by Better Anchor Links
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.85 ▼35.09 |
Dashboard /wp-admin | 2.10 ▼1.20 | 5.47 ▼38.67 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.72 ▼41.90 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.98 ▼90.45 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.83 ▼29.56 |
B. Anchor Links /wp-admin/options-general.php?page=better-anchor-links/admin/options.php | 2.10 | 6.11 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
lm_bal_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Better Anchor Links
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.48 ▲0.02 | 1.80 ▲0.18 | 44.85 ▲3.56 |
Dashboard /wp-admin | 2,210 ▲27 | 4.84 ▼0.13 | 104.27 ▼5.65 | 39.36 ▼1.11 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 1.97 ▼0.07 | 35.11 ▼2.86 | 33.03 ▼5.12 |
Add New Post /wp-admin/post-new.php | 1,546 ▲4 | 18.46 ▲0.25 | 629.00 ▼26.89 | 52.00 ▼1.31 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.16 ▼0.01 | 99.44 ▼6.27 | 46.10 ▲1.24 |
B. Anchor Links /wp-admin/options-general.php?page=better-anchor-links/admin/options.php | 1,102 | 2.03 | 26.19 | 32.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/better-anchor-links/auto-anchor-list.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; mwm_aalLoader has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- lm_bal_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=better-anchor-links/admin/options.php
- > Deprecated in wp-content/plugins/better-anchor-links/auto-anchor-list.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; mwm_aalLoader has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=better-anchor-links/admin/options.php
- > Deprecated in wp-content/plugins/better-anchor-links/admin/admin.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; mwm_aalAdminPanel has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=better-anchor-links/admin/options.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=better-anchor-links/admin/options.php
- > Notice in wp-content/plugins/better-anchor-links/admin/options.php+4
Undefined index: page_options
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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/better-anchor-links/admin/options.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/better-anchor-links/auto-anchor-list.php:46
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/better-anchor-links/mwm-aal-class.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 (Admin options), #2 (Display in default wordpress template), #3 (Auto indent)
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
better-anchor-links/auto-anchor-list.php 92% from 13 tests
The main file in "Better Anchor Links" v. 1.7.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("better-anchor-links.php" instead of "auto-anchor-list.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin470 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 72 | 62 | 462 |
CSS | 1 | 0 | 2 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 21.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There were not PNG files found in your plugin