Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼0.53ms] Passed 4 tests
An overview of server-side resources used by PO/MO Editor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 38.18 ▼0.66 |
Dashboard /wp-admin | 3.46 ▲0.16 | 47.62 ▲0.40 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 49.77 ▲4.78 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 92.77 ▼2.53 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 34.82 ▲0.67 |
PO/MO Editor /wp-admin/tools.php?page=pomo-editor | 3.40 | 39.79 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
- You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/pomo-editor/" and "wp-content/uploads/"
- (new file) wp-content/pomo-editor/.empty
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for PO/MO Editor
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.25 ▼1.15 | 1.55 ▼0.37 | 44.52 ▲2.90 |
Dashboard /wp-admin | 2,207 ▲19 | 5.76 ▼0.14 | 95.22 ▼12.08 | 38.06 ▼7.62 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.12 ▲0.11 | 39.42 ▲6.04 | 35.21 ▲1.63 |
Add New Post /wp-admin/post-new.php | 1,537 ▼5 | 23.34 ▲5.13 | 634.97 ▲34.31 | 54.35 ▲3.53 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.19 ▼0.03 | 97.20 ▼1.71 | 42.18 ▲0.74 |
PO/MO Editor /wp-admin/tools.php?page=pomo-editor | 876 | 1.94 | 34.96 | 25.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'POMOEditor\\Handler' not found in wp-content/plugins/pomo-editor/includes/class-pomoeditor-backend.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function POMOEditor_Autoloader\\plugin_dir_path() in wp-content/plugins/pomo-editor/includes/autoloader.php:34
- > PHP Fatal error
Uncaught Error: Class 'POMOEditor\\Handler' not found in wp-content/plugins/pomo-editor/includes/class-pomoeditor-system.php:22
- > PHP Fatal error
Uncaught Error: Class 'POMOEditor\\Handler' not found in wp-content/plugins/pomo-editor/includes/class-pomoeditor-manager.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pomo-editor/documentation/editor/overview.php:1
- > PHP Fatal error
Uncaught Error: Class 'POMOEditor\\Handler' not found in wp-content/plugins/pomo-editor/includes/class-pomoeditor-documenter.php:23
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/pomo-editor/pomo-editor.php on line 44
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pomo-editor/documentation/index/overview.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
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
No plugin tags provided
pomo-editor/pomo-editor.php Passed 13 tests
The entry point to "PO/MO Editor" version 1.4.2 is a PHP file that has certain tags in its header comment area
42 characters long description:
Edit gettext po/mo files within WordPress.
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
No dangerous file extensions were detected2,111 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 276 | 1,129 | 1,451 |
JavaScript | 2 | 139 | 28 | 518 |
CSS | 1 | 20 | 0 | 133 |
Markdown | 1 | 7 | 0 | 9 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 19.62 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 7 | 100.00% |
Methods | 58 | |
▷ Static methods | 28 | 48.28% |
▷ Public methods | 55 | 94.83% |
▷ Protected methods | 3 | 5.17% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 3 | |
▷ Global constants | 3 | 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
No PNG images were found in this plugin