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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼147.97ms] Passed 4 tests
A check of server-side resources used by AddFunc IDs
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 40.72 ▲19.43 |
Dashboard /wp-admin | 3.07 ▲0.01 | 46.22 ▼3.03 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 42.88 ▼5.38 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 87.45 ▼579.46 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 34.59 ▼4.02 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for AddFunc IDs
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,683 ▲87 | 15.89 ▲0.51 | 9.76 ▲0.09 | 47.92 ▲1.08 |
Dashboard /wp-admin | 2,974 ▲43 | 6.03 ▼0.13 | 144.37 ▲0.53 | 109.39 ▼0.38 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.70 ▼0.02 | 64.49 ▼9.34 | 93.35 ▲1.68 |
Add New Post /wp-admin/post-new.php | 1,676 ▲61 | 18.88 ▼3.04 | 402.52 ▲122.80 | 104.92 ▼3.06 |
Media Library /wp-admin/upload.php | 1,811 ▲63 | 5.01 ▲0.02 | 168.34 ▼6.47 | 115.25 ▼4.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addfunc-ids/addfunc-ids.php:25
- > PHP Fatal error
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 Passed 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: tinymce, editor button, remove id, id attribute, add id
addfunc-ids/addfunc-ids.php Passed 13 tests
The main PHP script in "AddFunc IDs" version 1.0 is automatically included on every request by WordPress
91 characters long description:
Adds a button that allows authors/editors to easily generate ID attributes for subheadings.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected864 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 779 |
JavaScript | 1 | 1 | 51 | 40 |
CSS | 2 | 1 | 18 | 25 |
PHP | 1 | 4 | 21 | 20 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected