Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼9.77ms] Passed 4 tests
An overview of server-side resources used by Convert PT AO90 for GlotPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 35.29 ▼6.14 |
Dashboard /wp-admin | 3.44 ▲0.09 | 47.21 ▼17.08 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 49.09 ▲2.52 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 86.12 ▼17.44 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 34.87 ▲1.57 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Convert PT AO90 for GlotPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲85 | 14.25 ▼0.15 | 1.84 ▲0.11 | 36.58 ▼7.81 |
Dashboard /wp-admin | 2,212 ▲34 | 5.62 ▼0.03 | 102.27 ▼0.11 | 45.56 ▲2.70 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.98 ▼0.04 | 40.72 ▲1.99 | 37.58 ▲4.86 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.56 ▲0.45 | 665.59 ▲57.14 | 56.26 ▲8.05 |
Media Library /wp-admin/upload.php | 1,414 ▲11 | 4.18 ▲0.01 | 98.82 ▲2.72 | 42.89 ▼2.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/gp-convert-pt-ao90/vendor/pedro-mendonca/convert-pt-ao90/inc/build-replace-pairs.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(wp-content/plugins/gp-convert-pt-ao90/vendor/pedro-mendonca/convert-pt-ao90/tests/test-cases.php): failed to open stream: No such file or directory in wp-content/plugins/gp-convert-pt-ao90/vendor/pedro-mendonca/convert-pt-ao90/example.php on line 35
- > PHP Warning
file_put_contents(inc/replace_pairs.json): failed to open stream: No such file or directory in wp-content/plugins/gp-convert-pt-ao90/vendor/pedro-mendonca/convert-pt-ao90/inc/build-replace-pairs.php on line 50
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/gp-convert-pt-ao90/vendor/pedro-mendonca/convert-pt-ao90/tests/test-cases.php' (include_path='.:/usr/share/php') in wp-content/plugins/gp-convert-pt-ao90/vendor/pedro-mendonca/convert-pt-ao90/example.php on line 35
- > PHP Fatal error
Uncaught Error: Call to undefined function gp_translation_row_classes() in wp-content/plugins/gp-convert-pt-ao90/gp-templates/translation-row-preview.php:18
- > PHP Warning
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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: translation, portuguese, localization, glotpress, ao90
gp-convert-pt-ao90/gp-convert-pt-ao90.php Passed 13 tests
The principal PHP file in "Convert PT AO90 for GlotPress" v. 1.3.3 is loaded by WordPress automatically on each request
122 characters long description:
Language tool for GlotPress to convert text according to the Portuguese Language Orthographic Agreement of 1990 (PT AO90).
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
There were no executable files found in this plugin9,187 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 7,645 |
PHP | 19 | 424 | 975 | 1,412 |
CSS | 2 | 9 | 7 | 50 |
PO File | 1 | 10 | 12 | 43 |
Sass | 1 | 11 | 2 | 37 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 26.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 34 | 60.71% |
▷ Public methods | 53 | 94.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.36% |
Functions | 14 | |
▷ Named functions | 10 | 71.43% |
▷ Anonymous functions | 4 | 28.57% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
There were not PNG files found in your plugin