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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.80ms] Passed 4 tests
Analyzing server-side resources used by Export to Excel
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.22 ▼1.89 |
Dashboard /wp-admin | 3.32 ▼0.02 | 48.68 ▼13.68 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.29 ▼1.33 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 83.21 ▼22.30 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.34 ▲2.99 |
Export to Excel /wp-admin/tools.php?page=export-2-excel | 3.24 | 32.08 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Export to Excel
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.07 ▼0.09 | 1.82 ▼0.02 | 42.78 ▼0.78 |
Dashboard /wp-admin | 2,202 ▲21 | 5.63 ▼0.11 | 89.07 ▼18.15 | 39.24 ▼6.33 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.09 | 34.83 ▼3.64 | 36.62 ▼0.89 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 22.68 ▼0.57 | 674.22 ▲64.17 | 65.75 ▲14.58 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.17 ▼0.04 | 99.93 ▼11.00 | 45.06 ▲0.89 |
Export to Excel /wp-admin/tools.php?page=export-2-excel | 994 | 1.68 | 25.64 | 46.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/export-2-excel/includes/select_criteria.php:12
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/export-2-excel/includes/defines.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function query_posts() in wp-content/plugins/export-2-excel/includes/loop.php:3
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/export-2-excel/includes/defines.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/export-2-excel/export-2-excel.php:23
- > PHP Notice
Undefined variable: post_type in wp-content/plugins/export-2-excel/includes/loop.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% 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:
- Screenshots: Please add images for these screenshots: #1 (Select post and fields to be displayed in Excel.), #2 (Select page and fields to be displayed in Excel.), #3 (Select comments author and fields to be displayed in Excel.)
export-2-excel/export-2-excel.php Passed 13 tests
The entry point to "Export to Excel" version 1.0 is a PHP file that has certain tags in its header comment area
99 characters long description:
A plugin which allows you to download your posts, pages, custom post types to .xls or .xlsx format.
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
There were no executable files found in this plugin436 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 18 | 23 | 346 |
JavaScript | 1 | 1 | 3 | 55 |
CSS | 1 | 2 | 0 | 35 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
3 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 20.97KB | 9.20KB | ▼ 56.13% |
screenshot-3.png | 20.53KB | 8.94KB | ▼ 56.45% |
screenshot-1.png | 23.13KB | 9.79KB | ▼ 57.66% |