Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲11.99MB] [CPU: ▲24.04ms] 75% from 4 tests
An overview of server-side resources used by GlotPress Amazon Translate Plugin
The following require your attention
- Extra RAM: The extra memory usage must be under 5MB (currently 11.99MB on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 15.98 ▲12.52 | 81.70 ▲39.90 |
Dashboard /wp-admin | 16.00 ▲12.69 | 89.01 ▲38.91 |
Posts /wp-admin/edit.php | 16.00 ▲12.64 | 84.77 ▲38.65 |
Add New Post /wp-admin/post-new.php | 16.00 ▲10.11 | 71.79 ▼21.12 |
Media Library /wp-admin/upload.php | 16.00 ▲12.77 | 73.17 ▲39.72 |
Server storage [IO: ▲13.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by GlotPress Amazon Translate Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.36 ▼1.02 | 1.65 ▼0.04 | 67.16 ▲22.04 |
Dashboard /wp-admin | 2,219 ▲28 | 5.83 ▼0.04 | 97.45 ▼2.82 | 37.20 ▼8.30 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 1.99 ▼0.04 | 38.25 ▲0.42 | 31.88 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,526 ▲12 | 17.43 ▼0.19 | 679.98 ▲18.77 | 52.28 ▼8.40 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.22 ▲0.00 | 93.52 ▼2.75 | 41.35 ▼1.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/gp-aws-translate/includes/_options.php
- > /wp-content/plugins/gp-aws-translate/includes/_constants.php
- > /wp-content/plugins/gp-aws-translate/gp-aws-translate.php
- > /wp-content/plugins/gp-aws-translate/includes/settings_page.php
- > /wp-content/plugins/gp-aws-translate/gp-extensions/gp_aws_frontend.php
- > /wp-content/plugins/gp-aws-translate/gp-extensions/gp_aws_api_controller.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 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
3 plugin tags: suggestions, amazon translate, glotpress
gp-aws-translate/gp-aws-translate.php 92% from 13 tests
The main PHP script in "GlotPress Amazon Translate Plugin" version 1.1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin271 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 42 | 12 | 250 |
Markdown | 1 | 6 | 0 | 21 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
No PNG files were detected