Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.37MB] [CPU: ▲1.45ms] Passed 4 tests
Server-side resources used by Export WP Page to Static HTML/CSS
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.83 ▲1.37 | 43.23 ▼0.07 |
Dashboard /wp-admin | 4.71 ▲1.41 | 56.67 ▲9.02 |
Posts /wp-admin/edit.php | 4.76 ▲1.41 | 54.71 ▲5.45 |
Add New Post /wp-admin/post-new.php | 7.23 ▲1.34 | 92.91 ▼8.60 |
Media Library /wp-admin/upload.php | 4.57 ▲1.34 | 46.55 ▲14.58 |
Server storage [IO: ▲0.53MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 63 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_export_page_to_html_logs |
wp_export_urls_logs |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
wpptsh_notices |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Export WP Page to Static HTML/CSS: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲118 | 14.23 ▼0.48 | 2.11 ▲0.25 | 41.47 ▼0.94 |
Dashboard /wp-admin | 2,239 ▲65 | 5.78 ▲0.22 | 96.42 ▼25.02 | 94.32 ▲50.50 |
Posts /wp-admin/edit.php | 2,165 ▲62 | 2.14 ▲0.18 | 36.76 ▼4.41 | 40.98 ▲3.81 |
Add New Post /wp-admin/post-new.php | 1,603 ▲74 | 23.15 ▼0.51 | 676.37 ▲72.00 | 53.60 ▼20.28 |
Media Library /wp-admin/upload.php | 1,456 ▲56 | 4.14 ▼0.02 | 97.85 ▼25.65 | 89.09 ▲37.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_export_page_to_html_logs
- wp_export_urls_logs
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- wpptsh_notices
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/export-wp-page-to-static-html/admin/partials/Tabs/ftp-settings.php
- 26× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/export-wp-page-to-static-html/admin/partials/Tabs/advanced-settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'ExportHtmlAdmin\\Export_Wp_Page_To_Static_Html_Admin' not found in wp-content/plugins/export-wp-page-to-static-html/admin/includes/AjaxRequests/cancelRcExportProcess.php:6
- > PHP Notice
Undefined variable: pass in wp-content/plugins/export-wp-page-to-static-html/admin/partials/Tabs/ftp-settings.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'ExportHtmlAdmin\\Export_Wp_Page_To_Static_Html_Admin' not found in wp-content/plugins/export-wp-page-to-static-html/admin/includes/AjaxRequests/exportLogPercentage.php:6
- > PHP Notice
Undefined variable: ftp_status in wp-content/plugins/export-wp-page-to-static-html/admin/partials/Tabs/ftp-settings.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/export-wp-page-to-static-html/includes/global_functions.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/export-wp-page-to-static-html/admin/partials/export-wp-page-to-static-html-admin-display.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/export-wp-page-to-static-html/admin/partials/Tabs/custom-url.php:25
- > PHP Fatal error
Uncaught Error: Class 'ExportHtmlAdmin\\Export_Wp_Page_To_Static_Html_Admin' not found in wp-content/plugins/export-wp-page-to-static-html/admin/includes/AjaxRequests/requestForWpPageToStaticHtml.php:6
- > PHP Fatal error
Uncaught Error: Class 'ExportHtmlAdmin\\Export_Wp_Page_To_Static_Html_Admin' not found in wp-content/plugins/export-wp-page-to-static-html/admin/includes/AjaxRequests/deleteExportedZipFile.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
export-wp-page-to-static-html/export-wp-page-to-static-html.php Passed 13 tests
The main PHP file in "Export WP Page to Static HTML/CSS" ver. 2.2.1 adds more information about the plugin and also serves as the entry point for this plugin
47 characters long description:
Export any WP Page to html and css very easily.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin9,066 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 1,732 | 1,512 | 6,555 |
CSS | 2 | 178 | 155 | 1,753 |
JavaScript | 5 | 140 | 102 | 758 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 38.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 295.00 |
Average method complexity | 5.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 1 | 3.33% |
▷ Concrete classes | 29 | 96.67% |
▷ Final classes | 0 | 0.00% |
Methods | 277 | |
▷ Static methods | 6 | 2.17% |
▷ Public methods | 255 | 92.06% |
▷ Protected methods | 15 | 5.42% |
▷ Private methods | 7 | 2.53% |
Functions | 30 | |
▷ Named functions | 29 | 96.67% |
▷ Anonymous functions | 1 | 3.33% |
Constants | 25 | |
▷ Global constants | 25 | 100.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
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/html-icon.png | 0.99KB | 0.33KB | ▼ 66.63% |
admin/images/folder.png | 0.37KB | 0.28KB | ▼ 23.61% |
admin/images/recorp-logo.png | 10.36KB | 3.47KB | ▼ 66.54% |
admin/images/settings-hover.png | 2.47KB | 1.76KB | ▼ 28.48% |
admin/images/down-arrow.png | 2.86KB | 2.21KB | ▼ 22.82% |