Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.11ms] Passed 4 tests
An overview of server-side resources used by Show Translation Origin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.55 ▼2.22 |
Dashboard /wp-admin | 3.31 ▼0.03 | 43.78 ▼17.66 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.89 ▲2.46 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 87.40 ▼16.57 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.52 ▲0.01 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_rdhil_localization_table |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
rdhilpho_options |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Show Translation Origin: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲172 | 15.06 ▲0.77 | 6.63 ▲4.67 | 39.73 ▼3.76 |
Dashboard /wp-admin | 2,213 ▲22 | 6.04 ▲1.15 | 125.73 ▲14.37 | 41.03 ▼5.71 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.41 ▲0.41 | 50.71 ▲13.41 | 36.27 ▲5.55 |
Add New Post /wp-admin/post-new.php | 1,530 ▲11 | 18.66 ▼4.60 | 601.15 ▼62.25 | 53.31 ▼4.60 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.65 ▲0.46 | 98.50 ▲4.04 | 43.55 ▼0.97 |
Uninstaller [IO: ▲0.10MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- Uninstaller has failed for this plugin, leaving 6 files (0.10MB) in the plugin directory
- (new file) css/tooltip.css
- (new file) screenshot-1.jpg
- (new file) uninstall.php
- (new file) js/hover_text.js
- (new file) show_translation_origin.php
- (new file) Readme.txt
- The uninstall procedure has failed, leaving 8 options in the database
- theysaidso_admin_options
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- db_upgraded
- rdhilpho_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/show-translation-origin/show_translation_origin.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Shows Translation Origin in action) image required
show-translation-origin/show_translation_origin.php 85% from 13 tests
"Show Translation Origin" version 1.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/languages/")
- Main file name: The principal plugin file should be the same as the plugin slug ("show-translation-origin.php" instead of "show_translation_origin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected281 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 61 | 56 | 202 |
JavaScript | 1 | 14 | 5 | 70 |
CSS | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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 images were found in this plugin