Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼12.35ms] Passed 4 tests
An overview of server-side resources used by POEditor
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 33.58 ▼7.12 |
Dashboard /wp-admin | 3.54 ▲0.20 | 43.77 ▼18.77 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 49.15 ▲4.86 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 72.61 ▼19.86 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 33.77 ▼3.65 |
POEditor /wp-admin/tools.php?page=poeditor | 3.40 | 29.48 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
poeditor_flash_messages |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for POEditor
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.20 ▼1.48 | 1.56 ▼0.46 | 41.20 ▼3.30 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▲0.81 | 109.46 ▼7.15 | 42.57 ▼4.50 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.07 | 39.18 ▲2.00 | 35.67 ▲2.42 |
Add New Post /wp-admin/post-new.php | 1,540 ▲21 | 23.46 ▲0.05 | 697.50 ▲15.55 | 55.17 ▼3.99 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.02 | 92.73 ▼9.66 | 40.92 ▼8.69 |
POEditor /wp-admin/tools.php?page=poeditor | 856 | 2.01 | 25.45 | 29.94 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- poeditor_flash_messages
- widget_theysaidso_widget
- widget_recent-comments
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/poeditor/views/getProjects.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/poeditor/views/index_nokey.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/poeditor/views/customErrorPage.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/poeditor/views/changeApiKey.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/poeditor/poeditor.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/poeditor/views/index.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/poeditor/views/scan.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% 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
These attributes need to be fixed:
- Contributors: The plugin tags were not defined
- Contributors: The plugin contributors field is not present
- Donate link: Invalid URI ("")
poeditor/poeditor.php Passed 13 tests
The principal PHP file in "POEditor" v. 0.9.8 is loaded by WordPress automatically on each request
104 characters long description:
This plugin will let you manage your POEditor translations directly from Wordpress via the POEditor API.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,929 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 11 | 778 | 968 | 1,684 |
PHP | 8 | 249 | 190 | 1,091 |
CSS | 1 | 25 | 0 | 121 |
SVG | 2 | 0 | 0 | 26 |
Markdown | 1 | 4 | 0 | 6 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 84.62% |
▷ Protected methods | 2 | 5.13% |
▷ Private methods | 4 | 10.26% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 30.90KB | 29.89KB | ▼ 3.28% |
screenshot-2.png | 35.65KB | 34.75KB | ▼ 2.51% |
views/_resources/img/refresh.png | 0.78KB | 0.64KB | ▼ 18.13% |
views/_resources/img/logo.png | 6.63KB | 2.81KB | ▼ 57.64% |
views/_resources/img/warning.png | 0.80KB | 0.63KB | ▼ 20.74% |