Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼138.00ms] Passed 4 tests
This is a short check of server-side resources used by Smart Tag Insert
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.99 ▲0.27 | 39.36 ▲14.85 |
Dashboard /wp-admin | 3.22 ▲0.16 | 57.44 ▲0.53 |
Posts /wp-admin/edit.php | 3.33 ▲0.22 | 52.71 ▲1.17 |
Add New Post /wp-admin/post-new.php | 5.58 ▲0.15 | 110.80 ▼546.57 |
Media Library /wp-admin/upload.php | 3.16 ▲0.15 | 37.34 ▼7.13 |
Smart Tag Insert /wp-admin/options-general.php?page=sti-options | 3.14 | 34.58 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, 2 new options
New WordPress options |
---|
sti_settings |
sti_current_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Smart Tag Insert
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲102 | 15.92 ▲0.42 | 9.78 ▼4.29 | 48.28 ▼3.58 |
Dashboard /wp-admin | 2,975 ▲44 | 5.86 ▼0.12 | 173.86 ▲2.35 | 116.79 ▼3.17 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▼0.00 | 70.85 ▼4.87 | 95.82 ▼0.59 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.82 ▲0.08 | 426.07 ▼4.52 | 120.74 ▲1.95 |
Media Library /wp-admin/upload.php | 1,812 ▲64 | 5.04 ▲0.10 | 167.60 ▼17.65 | 121.30 ▼9.09 |
Smart Tag Insert /wp-admin/options-general.php?page=sti-options | 1,622 | 2.83 | 85.28 | 120.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 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)
Good news, no errors were detected
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 perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/smart-tag-insert/smart-tag-insert.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: automatic post tagger, smart tagging, post management, post, automatic tagging...
smart-tag-insert/smart-tag-insert.php Passed 13 tests
"Smart Tag Insert" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
89 characters long description:
Automatically adds most relevant tags to posts selecting them from an admin-defined list.
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
Good job! No executable or dangerous file extensions detected1,374 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 259 | 403 | 653 |
CSS | 8 | 47 | 114 | 619 |
JavaScript | 2 | 24 | 8 | 102 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 8.44 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 25 | 71.43% |
▷ Public methods | 35 | 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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
22 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
style/ui-lightness/images/ui-bg_flat_10_000000_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
style/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png | 3.67KB | 1.93KB | ▼ 47.53% |
style/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png | 0.13KB | 0.18KB | 0.00% |
style/ui-lightness/images/ui-icons_ffffff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
style/ui-lightness/images/ui-icons_228ef1_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |