Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.40ms] Passed 4 tests
This is a short check of server-side resources used by Lingmo Translator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 43.17 ▲3.79 |
Dashboard /wp-admin | 3.40 ▲0.09 | 45.02 ▼8.26 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 44.98 ▼2.28 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 93.86 ▼0.54 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 32.51 ▼2.53 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 150 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_lingmo_widget |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Lingmo Translator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲171 | 13.76 ▼0.69 | 12.38 ▲10.30 | 41.90 ▼7.42 |
Dashboard /wp-admin | 2,231 ▲40 | 4.86 ▼0.01 | 107.03 ▲0.95 | 42.83 ▲2.20 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.02 ▲0.04 | 40.91 ▲2.76 | 36.46 ▲5.40 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.21 ▲0.01 | 645.13 ▲8.35 | 55.98 ▼12.09 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.21 ▲0.05 | 96.88 ▲0.26 | 41.44 ▼0.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_lingmo_widget
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lingmo-translator/widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/lingmo-translator/lingmo-translator.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: translation, lingmo, multilingual, translate, translate wordpress...
lingmo-translator/lingmo-translator.php Passed 13 tests
Analyzing the main PHP file in "Lingmo Translator" version 1.0.0
108 characters long description:
Lingmo Translator Plugin - Provides shortcode & widgets to embed Lingmo Translator in your Wordpress website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,323 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 33 | 50 | 1,167 |
PHP | 2 | 92 | 31 | 682 |
JSON | 1 | 2 | 0 | 474 |
JavaScript | 1 | 0 | 1 | 0 |
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.44 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
143 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
flags/english_nz.png | 1.54KB | 0.79KB | ▼ 48.61% |
flags/greek.png | 1.21KB | 0.39KB | ▼ 67.50% |
flags/hongkong.png | 1.43KB | 0.59KB | ▼ 58.41% |
flags/assamese.png | 1.17KB | 0.37KB | ▼ 68.59% |
flags/bulgarian.png | 0.97KB | 0.15KB | ▼ 84.77% |