Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼295.39ms] Passed 4 tests
Server-side resources used by Convert Docx2post
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 31.36 ▲10.20 |
Dashboard /wp-admin | 3.06 ▲0.01 | 44.96 ▲1.98 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 42.16 ▲1.16 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 89.90 ▼1,181.49 |
Media Library /wp-admin/upload.php | 3.00 ▼0.00 | 33.36 ▼3.20 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Convert Docx2post
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,654 ▲72 | 16.13 ▲0.56 | 8.63 ▲1.24 | 51.73 ▲2.57 |
Dashboard /wp-admin | 2,932 ▲79 | 5.91 ▲0.09 | 144.11 ▲5.45 | 99.57 ▼14.78 |
Posts /wp-admin/edit.php | 2,721 ▲15 | 2.69 ▼0.00 | 62.44 ▼8.09 | 87.45 ▼4.57 |
Add New Post /wp-admin/post-new.php | 1,863 ▲207 | 19.09 ▲0.70 | 363.05 ▼10.28 | 111.32 ▼6.06 |
Media Library /wp-admin/upload.php | 1,787 ▲15 | 4.98 ▼0.04 | 162.31 ▲2.63 | 111.35 ▼4.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
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
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: alert in wp-content/plugins/convert-docx2post/options.php on line 238
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/convert-docx2post/admin.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/convert-docx2post/convert-docx2post.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/convert-docx2post/options.php:279
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: office, doc, word
convert-docx2post/convert-docx2post.php Passed 13 tests
The entry point to "Convert Docx2post" version 1.4 is a PHP file that has certain tags in its header comment area
88 characters long description:
Convert Microsoft Word docx or text files to Wordpress posts, pages or custom post types
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin241 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 109 | 15 | 241 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 50.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin