Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼7.63ms] Passed 4 tests
A check of server-side resources used by Set HTML lang attribute per post
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.58 ▼2.03 |
Dashboard /wp-admin | 3.31 ▼0.03 | 46.31 ▼19.72 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.29 ▼4.52 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 96.82 ▼4.24 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.65 ▲3.40 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Set HTML lang attribute per post
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▲0.02 | 1.75 ▲0.12 | 42.39 ▼0.41 |
Dashboard /wp-admin | 2,195 ▲15 | 5.62 ▲0.08 | 84.75 ▼10.77 | 42.42 ▼0.75 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.05 | 39.20 ▼2.09 | 37.72 ▲0.50 |
Add New Post /wp-admin/post-new.php | 6,585 ▲5,054 | 26.09 ▲3.09 | 939.75 ▲323.24 | 60.30 ▲2.54 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▲0.02 | 97.13 ▼5.71 | 44.47 ▲3.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
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/set-html-lang-attribute-per-post/set-html-lang-attribute-per-post.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: html, language, lang
set-html-lang-attribute-per-post/set-html-lang-attribute-per-post.php Passed 13 tests
The primary PHP file in "Set HTML lang attribute per post" version 0.0.1 is used by WordPress to initiate all plugin functionality
99 characters long description:
This plugin allows you to specify a html lang attribute per post to override the site-wide default.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin233 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 11 | 152 |
PO File | 2 | 8 | 12 | 59 |
Markdown | 1 | 14 | 0 | 22 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 7 | 70.00% |
▷ Protected methods | 3 | 30.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin