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.10MB] [CPU: ▼139.17ms] Passed 4 tests
Analyzing server-side resources used by hiWeb Export Posts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 34.49 ▲12.48 |
Dashboard /wp-admin | 3.15 ▲0.09 | 36.65 ▼2.89 |
Posts /wp-admin/edit.php | 3.26 ▲0.15 | 45.25 ▲3.70 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.08 | 90.82 ▼548.23 |
Media Library /wp-admin/upload.php | 3.09 ▲0.08 | 31.92 ▼9.24 |
hiWeb Export / Import /wp-admin/tools.php?page=hiweb-export-posts | 3.06 | 27.71 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for hiWeb Export Posts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.83 ▼0.05 | 8.97 ▲0.82 | 47.12 ▼0.48 |
Dashboard /wp-admin | 2,978 ▲44 | 5.90 ▼0.02 | 131.62 ▼14.57 | 111.76 ▲3.78 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.01 | 66.18 ▲5.41 | 92.88 ▲3.31 |
Add New Post /wp-admin/post-new.php | 1,673 ▼10 | 19.13 ▲0.21 | 389.53 ▼12.03 | 105.29 ▼10.43 |
Media Library /wp-admin/upload.php | 1,815 ▲5 | 5.00 ▼0.00 | 143.62 ▼7.71 | 121.10 ▼0.28 |
hiWeb Export / Import /wp-admin/tools.php?page=hiweb-export-posts | 1,028 | 2.09 | 57.01 | 66.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script 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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
scandir(): (errno 2): No such file or directory in wp-content/plugins/hiweb-export-posts/views/tool-dashboard-history.php on line 9
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/hiweb-export-posts/views/tool-dashboard-history.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/hiweb-export-posts/views/tool-dashboard-1.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function hiweb_export() in wp-content/plugins/hiweb-export-posts/views/tool-dashboard-import-2.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function hiweb_export() in wp-content/plugins/hiweb-export-posts/views/tool-dashboard-import-3.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function self_admin_url() in wp-content/plugins/hiweb-export-posts/views/tool-dashboard-import-1.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function self_admin_url() in wp-content/plugins/hiweb-export-posts/views/tool-dashboard-history.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function self_admin_url() in wp-content/plugins/hiweb-export-posts/views/tool-dashboard-export-1.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hiweb-export-posts/inc/hooks.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/hiweb-export-posts/inc/define.php:13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Please fix this invalid URI: ""
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Dashboard), #2 (Export Settings Page), #3 (Import from Upload File), #4 (Import History), #5 (Import Settings)
- Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
hiweb-export-posts/hiweb-export.php 92% from 13 tests
Analyzing the main PHP file in "hiWeb Export Posts" version 0.9.0.0
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hiweb-export-posts.php" instead of "hiweb-export.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected817 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 123 | 123 | 713 |
PO File | 1 | 26 | 26 | 79 |
JavaScript | 1 | 2 | 3 | 25 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 18.20 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 94.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.41% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
5 PNG files occupy 0.21MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 44.38KB | 23.04KB | ▼ 48.08% |
screenshot-1.png | 42.86KB | 20.82KB | ▼ 51.43% |
screenshot-5.png | 41.26KB | 21.21KB | ▼ 48.60% |
screenshot-2.png | 45.55KB | 23.85KB | ▼ 47.65% |
screenshot-4.png | 44.24KB | 23.08KB | ▼ 47.83% |