Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.22MB] [CPU: ▲2.95ms] Passed 4 tests
A check of server-side resources used by Mealingua Posts and Pages Translations
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 48.07 ▲4.75 |
Dashboard /wp-admin | 3.52 ▲0.22 | 57.65 ▲7.34 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 62.90 ▲12.96 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 97.81 ▼7.11 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 46.45 ▲6.80 |
Add New /wp-admin/post-new.php?post_type=mealingua | 3.67 | 64.40 |
Mealingua /wp-admin/edit.php?post_type=mealingua | 3.47 | 54.98 |
Languages /wp-admin/edit-tags.php?taxonomy=languages&post_type=mealingua | 3.44 | 44.53 |
Settings /wp-admin/edit.php?post_type=mealingua&page=settings | 3.44 | 42.15 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Mealingua Posts and Pages Translations
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,991 ▲230 | 13.80 ▼0.55 | 5.84 ▲3.92 | 41.41 ▼0.39 |
Dashboard /wp-admin | 2,280 ▲77 | 5.11 ▲0.07 | 114.68 ▲5.49 | 40.07 ▼3.61 |
Posts /wp-admin/edit.php | 2,194 ▲94 | 2.45 ▲0.40 | 43.26 ▲5.73 | 37.59 ▲2.02 |
Add New Post /wp-admin/post-new.php | 6,272 ▲4,738 | 19.02 ▼4.02 | 899.85 ▲276.90 | 37.63 ▼18.38 |
Media Library /wp-admin/upload.php | 1,472 ▲75 | 4.54 ▲0.37 | 105.06 ▼0.50 | 41.99 ▼6.25 |
Add New /wp-admin/post-new.php?post_type=mealingua | 2,781 | 8.14 | 185.82 | 139.74 |
Mealingua /wp-admin/edit.php?post_type=mealingua | 1,137 | 2.43 | 37.23 | 30.03 |
Languages /wp-admin/edit-tags.php?taxonomy=languages&post_type=mealingua | 1,374 | 2.26 | 32.93 | 31.58 |
Settings /wp-admin/edit.php?post_type=mealingua&page=settings | 1,039 | 2.43 | 36.11 | 32.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/mealingua/views/manual/post_flags_panel.php
- > /wp-content/plugins/mealingua/index.php
- > /wp-content/plugins/mealingua/views/post_flags_panel.php
- > /wp-content/plugins/mealingua/views/settings.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_reset_query() in wp-content/plugins/mealingua/views/draw_post_content.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mealingua/views/posts_selector_meta_box.php:1
- > PHP Notice
Undefined variable: content in wp-content/plugins/mealingua/views/post_flags_panel.php on line 32
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/mealingua/views/post_flags_panel.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/mealingua/views/post_languages_box.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=mealingua
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at Object.init (/wp-content/plugins/mealingua/js/admin.js?ver=6.3.1:16:57)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/mealingua/js/admin.js?ver=6.3.1:163:33)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=mealingua
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=mealingua&page=settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at Object.init (/wp-content/plugins/mealingua/js/admin.js?ver=6.3.1:16:57)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/mealingua/js/admin.js?ver=6.3.1:163:33)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=mealingua&page=settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
No plugin tags provided
mealingua/index.php 92% from 13 tests
The main PHP file in "Mealingua Posts and Pages Translations" ver. 2.0.6.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("mealingua.php" instead of "index.php")
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
Success! There were no dangerous files found in this plugin2,287 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 135 | 44 | 840 |
PO File | 7 | 265 | 530 | 655 |
CSS | 4 | 12 | 37 | 568 |
JavaScript | 4 | 46 | 41 | 224 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 35.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 38 | |
▷ Static methods | 38 | 100.00% |
▷ Public methods | 38 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/banners/woof_banner.png | 59.58KB | 24.13KB | ▼ 59.49% |
images/codecanyon_banner.png | 173.12KB | 57.43KB | ▼ 66.83% |