Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼4.70ms] Passed 4 tests
This is a short check of server-side resources used by MotaWord Translation
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.43 | 42.53 ▲5.50 |
Dashboard /wp-admin | 3.74 ▲0.39 | 48.54 ▼9.80 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 45.04 ▼3.51 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 84.38 ▼10.44 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 36.87 ▲4.94 |
MotaWord /wp-admin/options-general.php?page=motaword | 3.57 | 36.79 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for MotaWord Translation
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.35 ▼0.03 | 1.75 ▲0.04 | 44.94 ▲0.64 |
Dashboard /wp-admin | 2,206 ▲26 | 5.69 ▲0.07 | 85.14 ▼19.53 | 36.46 ▼3.51 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.07 ▲0.08 | 35.99 ▼2.30 | 33.56 ▲0.40 |
Add New Post /wp-admin/post-new.php | 6,228 ▲4,700 | 26.11 ▲3.11 | 899.50 ▲213.70 | 51.12 ▼3.31 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.25 ▼0.12 | 105.50 ▼3.05 | 46.45 ▼2.15 |
MotaWord /wp-admin/options-general.php?page=motaword | 874 | 2.05 | 28.69 | 27.86 |
Uninstaller [IO: ▲0.32MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attentionThis plugin did not uninstall successfully, leaving 6 options in the database
- The plugin did not uninstall successfully, leaving 52 files (0.32MB) in the plugin directory
- (new file) admin/css/icon_ongoing.png
- (new file) admin/css/motaword-admin.css
- (new file) admin/index.php
- (new file) admin/css/icon_completed.png
- (new file) admin/css/icon_error.png
- (new file) README.txt
- (new file) admin/css/logo.png
- (new file) admin/css/icon.png
- (new file) admin/class-motaword-admin.php
- (new file) LICENSE.txt
- ...
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
motaword/motaword.php Passed 13 tests
The entry point to "MotaWord Translation" version 1.3.9 is a PHP file that has certain tags in its header comment area
87 characters long description:
MotaWord plugin allows you to seamlessly submit your posts for translation to MotaWord.
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
Good job! No executable or dangerous file extensions detected2,652 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 538 | 992 | 2,327 |
JavaScript | 1 | 57 | 39 | 280 |
CSS | 1 | 7 | 4 | 45 |
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.46 |
Average class complexity | 55.43 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 234.00 |
Average method complexity | 4.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 204 | |
▷ Static methods | 20 | 9.80% |
▷ Public methods | 146 | 71.57% |
▷ Protected methods | 44 | 21.57% |
▷ Private methods | 14 | 6.86% |
Functions | 14 | |
▷ Named functions | 4 | 28.57% |
▷ Anonymous functions | 10 | 71.43% |
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
10 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/icon_completed.png | 2.25KB | 2.30KB | 0.00% |
admin/css/icon_ongoing.png | 2.25KB | 2.30KB | 0.00% |
trunk/admin/css/icon_completed.png | 2.25KB | 2.30KB | 0.00% |
trunk/admin/css/logo.png | 2.83KB | 2.89KB | 0.00% |
admin/css/icon.png | 2.25KB | 2.30KB | 0.00% |