Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼143.05ms] Passed 4 tests
A check of server-side resources used by JM Buddy Translate
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.08 | 38.41 ▲3.90 |
Dashboard /wp-admin | 3.14 ▲0.09 | 42.42 ▲9.01 |
Posts /wp-admin/edit.php | 3.22 ▲0.11 | 43.06 ▼8.88 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 84.72 ▼564.21 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 31.58 ▼3.00 |
BuddyTranslate /wp-admin/options-general.php?page=jm-buddy-translate | 3.05 | 31.37 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
JM Buddy Translate: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,929 ▲292 | 16.23 ▲0.26 | 10.61 ▲1.83 | 43.92 ▼5.74 |
Dashboard /wp-admin | 3,046 ▲115 | 5.88 ▼0.09 | 134.08 ▼14.21 | 121.10 ▲3.24 |
Posts /wp-admin/edit.php | 2,795 ▲56 | 2.70 ▲0.01 | 67.99 ▼0.44 | 91.82 ▲7.74 |
Add New Post /wp-admin/post-new.php | 1,531 ▼345 | 18.84 ▼0.36 | 357.51 ▼7.87 | 110.84 ▼1.37 |
Media Library /wp-admin/upload.php | 1,866 ▲59 | 4.99 ▼0.02 | 154.14 ▲5.54 | 114.09 ▼3.11 |
BuddyTranslate /wp-admin/options-general.php?page=jm-buddy-translate | 1,203 | 2.09 | 51.82 | 82.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/jm-buddy-translate/jm-buddy-translate.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jm-buddy-translate/jm-buddy-translate-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/jm-buddy-translate/uninstall.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: locale, buddypress, bbpress, language, back-end...
jm-buddy-translate/jm-buddy-translate.php 92% from 13 tests
The principal PHP file in "JM Buddy Translate" v. 1.0.9 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 212 characters long)
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
Success! There were no dangerous files found in this plugin1,026 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 61 | 125 | 422 |
JavaScript | 2 | 23 | 141 | 300 |
PO File | 4 | 88 | 92 | 256 |
CSS | 2 | 2 | 10 | 48 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 12 | |
▷ Static methods | 11 | 91.67% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 10 | |
▷ Named functions | 10 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected