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.00MB] [CPU: ▼147.20ms] Passed 4 tests
A check of server-side resources used by T2 Export
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 33.67 ▼1.05 |
Dashboard /wp-admin | 3.07 ▲0.01 | 47.92 ▲8.05 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 44.19 ▲0.38 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 94.87 ▼582.02 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 31.96 ▼6.10 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
T2 Export: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,699 ▲103 | 16.28 ▲0.71 | 7.87 ▼1.70 | 46.61 ▲0.45 |
Dashboard /wp-admin | 2,990 ▲53 | 5.90 ▼0.24 | 133.07 ▼9.13 | 108.72 ▲0.27 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.70 ▼0.01 | 65.70 ▲5.42 | 85.69 ▲1.39 |
Add New Post /wp-admin/post-new.php | 1,685 ▼187 | 18.89 ▼0.25 | 382.91 ▲25.77 | 109.91 ▼2.20 |
Media Library /wp-admin/upload.php | 1,824 ▲17 | 5.03 ▲0.03 | 154.39 ▲9.43 | 114.45 ▼3.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | 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
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/t2-export-for-specific-pages/form.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/t2-export-for-specific-pages/form.php on line 4
- > PHP Warning
require_once(ABSPATH/wp-admin/admin.php): failed to open stream: No such file or directory in wp-content/plugins/t2-export-for-specific-pages/form.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/t2-export-for-specific-pages/index.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Contributors: Contributors not specified
t2-export-for-specific-pages/index.php 92% from 13 tests
This is the main PHP file of "T2 Export" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("t2-export-for-specific-pages.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin3,491 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 520 | 382 | 2,407 |
CSS | 3 | 123 | 19 | 566 |
PHP | 3 | 92 | 138 | 363 |
Markdown | 1 | 24 | 0 | 59 |
Bourne Shell | 1 | 21 | 0 | 52 |
JSON | 2 | 0 | 0 | 44 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
assets/select2/select2.png | 0.60KB | 0.99KB | 0.00% |