Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/post-export/posts_export.php+45
Undefined index: post_type
Server metrics [RAM: ▼1.90MB] [CPU: ▼53.69ms] Passed 4 tests
Server-side resources used by Post Export Module
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.25 ▼6.96 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.42 ▼47.05 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.34 ▼46.02 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.45 ▼88.76 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.62 ▼32.91 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Post Export Module
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▲0.04 | 1.88 ▼0.17 | 43.53 ▼1.14 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▼0.05 | 89.29 ▼10.41 | 41.93 ▲0.78 |
Posts /wp-admin/edit.php | 2,284 ▲184 | 2.04 ▲0.06 | 36.06 ▲1.22 | 32.52 ▼5.83 |
Add New Post /wp-admin/post-new.php | 1,525 ▼3 | 22.09 ▼0.85 | 707.81 ▲22.75 | 52.86 ▼0.31 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.22 ▲0.03 | 100.79 ▼8.90 | 43.85 ▲0.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/post-export/posts_export.php+45
Undefined index: post_type
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/post-export/posts_export.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (screenshot-1.png shows a new option on the posts listing bulk option selectbox.), #2 (screenshot-2.png shows the export selection pop-up when admin click Apply after selecting posts.), #3 (screenshot-3.png shows selection of all posts which inturn shows all posts pages available and allow to select all or limited pages posts.), #4 (screenshot-4.png shows pop-up to save excel file after clicking Export button)
post-export/posts_export.php 92% from 13 tests
The principal PHP file in "Post Export Module" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("post-export.php" instead of "posts_export.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin603 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 15 | 20 | 273 |
JavaScript | 1 | 15 | 3 | 199 |
CSS | 1 | 0 | 0 | 131 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 24.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 16.67 |
▷ Minimum method complexity | 3.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 30.07KB | 18.48KB | ▼ 38.55% |
screenshot-2.png | 43.89KB | 22.35KB | ▼ 49.08% |
screenshot-3.png | 40.23KB | 22.27KB | ▼ 44.64% |
screenshot-4.png | 54.35KB | 27.05KB | ▼ 50.23% |