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.34MB] [CPU: ▼2.05ms] Passed 4 tests
Server-side resources used by ONLYOFFICE
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 48.67 ▲7.65 |
Dashboard /wp-admin | 3.66 ▲0.31 | 52.93 ▼10.31 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 54.58 ▲6.17 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 94.72 ▼8.86 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 42.47 ▲4.79 |
Settings /wp-admin/admin.php?page=onlyoffice-settings | 3.55 | 37.08 |
Files /wp-admin/admin.php?page=onlyoffice-files | 3.55 | 37.19 |
Server storage [IO: ▲1.22MB] [DB: ▲0.03MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 99 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
onlyoffice-formats |
can_compress_scripts |
onlyoffice-plugin-uuid |
widget_recent-comments |
onlyoffice-plugin-bytes |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for ONLYOFFICE
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲114 | 14.35 ▼0.07 | 2.57 ▲1.00 | 45.53 ▲5.02 |
Dashboard /wp-admin | 2,248 ▲68 | 5.61 ▲0.02 | 87.89 ▼7.49 | 39.35 ▼2.42 |
Posts /wp-admin/edit.php | 2,162 ▲62 | 2.07 ▲0.04 | 40.78 ▲4.28 | 35.79 ▼6.40 |
Add New Post /wp-admin/post-new.php | 6,391 ▲4,846 | 27.75 ▲4.72 | 934.53 ▲302.94 | 41.72 ▼8.80 |
Media Library /wp-admin/upload.php | 1,459 ▲59 | 4.27 ▲0.01 | 99.34 ▼7.89 | 73.27 ▲27.66 |
Settings /wp-admin/admin.php?page=onlyoffice-settings | 1,057 | 2.06 | 25.87 | 31.64 |
Files /wp-admin/admin.php?page=onlyoffice-files | 1,065 | 1.71 | 28.91 | 30.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- onlyoffice-formats
- can_compress_scripts
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 7× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/onlyoffice/includes/files/class-onlyoffice-plugin-files-list-table.php on line 32
- > PHP Fatal error
Uncaught Error: Interface 'Firebase\\JWT\\JWTExceptionWithPayloadInterface' not found in wp-content/plugins/onlyoffice/vendor/firebase/php-jwt/src/BeforeValidException.php:5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/onlyoffice/includes/files/class-onlyoffice-plugin-files-list-table.php on line 32
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/onlyoffice/includes/files/class-onlyoffice-plugin-files-list-table.php on line 32
- > PHP Fatal error
Uncaught Error: Interface 'Firebase\\JWT\\JWTExceptionWithPayloadInterface' not found in wp-content/plugins/onlyoffice/vendor/firebase/php-jwt/src/ExpiredException.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/onlyoffice/onlyoffice-wordpress.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/onlyoffice/onlyoffice-tinymce/onlyoffice-tinymce.php:39
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: editor, office, integration, document, presentation...
onlyoffice/onlyoffice-wordpress.php 85% from 13 tests
The main file in "ONLYOFFICE" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("onlyoffice.php" instead of "onlyoffice-wordpress.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected26,225 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 7 | 0 | 0 | 22,324 |
PHP | 40 | 598 | 2,183 | 2,637 |
Markdown | 5 | 147 | 0 | 481 |
PO File | 8 | 176 | 0 | 456 |
JavaScript | 6 | 36 | 85 | 179 |
SVG | 4 | 0 | 0 | 77 |
CSS | 3 | 9 | 0 | 71 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 11.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 30 | 100.00% |
▷ Final classes | 1 | 3.33% |
Methods | 164 | |
▷ Static methods | 68 | 41.46% |
▷ Public methods | 134 | 81.71% |
▷ Protected methods | 1 | 0.61% |
▷ Private methods | 29 | 17.68% |
Functions | 14 | |
▷ Named functions | 9 | 64.29% |
▷ Anonymous functions | 5 | 35.71% |
Constants | 21 | |
▷ Global constants | 2 | 9.52% |
▷ Class constants | 19 | 90.48% |
▷ Public constants | 5 | 26.32% |
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