Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼296.63ms] Passed 4 tests
This is a short check of server-side resources used by Add Anchor Links
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.10 | 55.52 ▲2.67 |
Dashboard /wp-admin | 3.45 ▲0.04 | 33.57 ▼0.28 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 38.13 ▲0.33 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 94.98 ▼1,185.48 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 26.00 ▼1.09 |
Add Anchor Links /wp-admin/options-general.php?page=add_anchor_links | 3.30 | 26.36 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Add Anchor Links
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,826 ▲72 | 15.84 ▼0.20 | 7.28 ▲0.75 | 2.63 ▲0.15 |
Dashboard /wp-admin | 2,897 ▲43 | 6.05 ▼0.16 | 117.37 ▼12.51 | 152.77 ▼6.96 |
Posts /wp-admin/edit.php | 2,692 ▲4 | 3.25 ▲0.01 | 60.95 ▼3.09 | 136.21 ▼5.68 |
Add New Post /wp-admin/post-new.php | 1,695 ▲5 | 21.64 ▲1.13 | 418.79 ▼43.64 | 155.54 ▼4.18 |
Media Library /wp-admin/upload.php | 1,703 ▲2 | 5.53 ▲0.01 | 160.42 ▲21.11 | 190.03 ▲10.71 |
Add Anchor Links /wp-admin/options-general.php?page=add_anchor_links | 1,030 | 2.38 | 52.03 | 111.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: content links, headings, anchor links, content, anchor
add-anchor-links/add-anchor-links.php 92% from 13 tests
The entry point to "Add Anchor Links" version 1.0.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/languages")
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
Success! There were no dangerous files found in this plugin226 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 61 | 146 | 207 |
CSS | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 1 | 33.33% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin