Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.31MB] [CPU: ▼4.96ms] Passed 4 tests
A check of server-side resources used by InDesign HTML 2 Post
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.32 | 34.42 ▼1.88 |
Dashboard /wp-admin | 3.66 ▲0.31 | 44.62 ▼13.39 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 45.13 ▼4.48 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 91.43 ▼0.08 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 37.32 ▲6.26 |
New Post from InDesign HTML export /wp-admin/edit.php?page=new-post-from-id-html | 3.52 | 50.15 |
InDesign 2 Post /wp-admin/options-general.php?page=idesign2post-setting-admin | 3.52 | 33.80 |
Server storage [IO: ▲10.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 109 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for InDesign HTML 2 Post
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲51 | 14.39 ▼0.10 | 1.70 ▼0.02 | 39.50 ▼1.57 |
Dashboard /wp-admin | 2,203 ▲33 | 5.62 ▼0.04 | 80.52 ▼21.61 | 36.70 ▼2.67 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.01 ▼0.02 | 36.82 ▼4.94 | 32.56 ▼6.88 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 18.48 ▼4.62 | 604.66 ▼64.32 | 64.47 ▲8.39 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.18 ▲0.02 | 101.33 ▼27.03 | 43.33 ▼15.68 |
New Post from InDesign HTML export /wp-admin/edit.php?page=new-post-from-id-html | 945 | 2.00 | 27.02 | 51.82 |
InDesign 2 Post /wp-admin/options-general.php?page=idesign2post-setting-admin | 997 | 2.03 | 22.44 | 35.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/edit.php?page=new-post-from-id-html
- > Notice in wp-content/plugins/indesignhtml2post/InDesignHTML2Post.php+283
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=idesign2post-setting-admin
- > Notice in wp-content/plugins/indesignhtml2post/SettingsPage.php+377
Undefined variable: args
- > GET request to /wp-admin/options-general.php?page=idesign2post-setting-admin
- > Notice in wp-content/plugins/indesignhtml2post/SettingsPage.php+377
Undefined variable: output
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=idesign2post-setting-admin
- > Notice in wp-content/plugins/indesignhtml2post/SettingsPage.php+419
Undefined variable: curent_resize_mode
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
indesignhtml2post/InDesignHTML2Post.php 92% from 13 tests
The primary PHP file in "InDesign HTML 2 Post" version 1.6.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("indesignhtml2post.php" instead of "InDesignHTML2Post.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 plugin37,770 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 29 | 2,755 | 1,514 | 33,756 |
PHP | 3 | 320 | 347 | 2,064 |
Sass | 14 | 18 | 12 | 553 |
CSS | 3 | 4 | 56 | 517 |
LESS | 5 | 8 | 14 | 334 |
JSON | 3 | 0 | 0 | 328 |
TypeScript | 1 | 13 | 144 | 134 |
Markdown | 4 | 35 | 0 | 84 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 95.67 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 229.00 |
Average method complexity | 5.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 60 | 89.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 10.45% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logoIndesign_128px.png | 3.24KB | 1.62KB | ▼ 50.09% |