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.23MB] [CPU: ▼180.20ms] Passed 4 tests
A check of server-side resources used by Add to All
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.99 ▲0.15 | 37.12 ▲3.58 |
Dashboard /wp-admin | 3.37 ▲0.31 | 39.91 ▲0.16 |
Posts /wp-admin/edit.php | 3.41 ▲0.30 | 35.65 ▲2.41 |
Add New Post /wp-admin/post-new.php | 5.67 ▲0.23 | 77.27 ▼725.70 |
Media Library /wp-admin/upload.php | 3.25 ▲0.24 | 25.58 ▲2.35 |
Snippet Category /wp-admin/edit-tags.php?taxonomy=ata_snippets_category&post_type=ata_snippets | 3.24 | 28.97 |
Add to All /wp-admin/options-general.php?page=ata_options_page | 3.33 | 30.15 |
Add New Snippet /wp-admin/post-new.php?post_type=ata_snippets | 3.41 | 43.45 |
All Snippets /wp-admin/edit.php?post_type=ata_snippets | 3.35 | 25.06 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 45 new files
Database: no new tables, 1 new option
New WordPress options |
---|
ata_settings |
Browser metrics Passed 4 tests
Checking browser requirements for Add to All
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,717 ▲116 | 15.70 ▼0.28 | 8.65 ▲3.41 | 77.59 ▼3.75 |
Dashboard /wp-admin | 2,974 ▲75 | 6.13 ▼0.05 | 120.47 ▼7.73 | 169.62 ▼5.33 |
Posts /wp-admin/edit.php | 2,789 ▲49 | 3.23 ▲0.00 | 62.87 ▼2.07 | 136.54 ▲2.45 |
Add New Post /wp-admin/post-new.php | 3,764 ▼43 | 18.99 ▲0.55 | 415.82 ▼29.40 | 158.78 ▲0.14 |
Media Library /wp-admin/upload.php | 1,796 ▲44 | 5.50 ▲0.05 | 141.56 ▼6.06 | 183.68 ▼2.80 |
Snippet Category /wp-admin/edit-tags.php?taxonomy=ata_snippets_category&post_type=ata_snippets | 1,802 | 2.79 | 53.24 | 117.19 |
Add to All /wp-admin/options-general.php?page=ata_options_page | 3,271 | 8.20 | 174.53 | 204.83 |
Add New Snippet /wp-admin/post-new.php?post_type=ata_snippets | 2,987 | 8.15 | 168.70 | 187.40 |
All Snippets /wp-admin/edit.php?post_type=ata_snippets | 1,492 | 2.84 | 59.50 | 112.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/add-to-all/add-to-all.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/add-to-all/includes/admin/sidebar.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: header, content, google analytics, snippets, adsense...
add-to-all/add-to-all.php Passed 13 tests
The principal PHP file in "Add to All" v. 1.7.3 is loaded by WordPress automatically on each request
113 characters long description:
A powerful plugin that will allow you to add custom code or CSS to your header, footer, sidebar, content or feed.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin3,523 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 840 | 1,863 | 2,743 |
PO File | 1 | 182 | 237 | 468 |
JavaScript | 8 | 60 | 18 | 273 |
Markdown | 1 | 24 | 0 | 39 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 9 | 8.49% |
▷ Public methods | 105 | 99.06% |
▷ Protected methods | 1 | 0.94% |
▷ Private methods | 0 | 0.00% |
Functions | 59 | |
▷ Named functions | 59 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/images/fb.png | 1.51KB | 1.59KB | 0.00% |