Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.45ms] Passed 4 tests
Analyzing server-side resources used by WP Post Import
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.15 ▲1.39 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.60 ▼5.53 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.26 ▲0.02 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.60 ▲5.86 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.59 ▼1.66 |
Server storage [IO: ▲5.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 260 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Post Import
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲58 | 13.15 ▼1.46 | 1.71 ▼0.26 | 44.27 ▲2.50 |
Dashboard /wp-admin | 2,218 ▲29 | 5.84 ▲0.89 | 96.97 ▼12.27 | 89.64 ▲47.95 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.01 ▲0.00 | 36.14 ▲0.54 | 33.73 ▲0.41 |
Add New Post /wp-admin/post-new.php | 1,531 ▼11 | 23.27 ▲4.96 | 661.34 ▲75.67 | 47.88 ▼11.79 |
Media Library /wp-admin/upload.php | 1,400 ▲18 | 4.19 ▲0.03 | 108.99 ▲10.59 | 45.15 ▲0.81 |
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 does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 102× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in wp-content/plugins/wp-post-import/Classes/PHPExcel/Writer/OpenDocument/Settings.php:28
- > PHP Fatal error
require_once(): Failed opening required 'PHPEXCEL_ROOTPHPExcel/Shared/trend/bestFitClass.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-post-import/Classes/PHPExcel/Shared/trend/linearBestFitClass.php on line 3
- > PHP Warning
Use of undefined constant PHPEXCEL_ROOT - assumed 'PHPEXCEL_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-post-import/Classes/PHPExcel/Shared/trend/powerBestFitClass.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in wp-content/plugins/wp-post-import/Classes/PHPExcel/Writer/Excel2007/StringTable.php:28
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in wp-content/plugins/wp-post-import/Classes/PHPExcel/Style/Borders.php:28
- > PHP Warning
Use of undefined constant PHPEXCEL_ROOT - assumed 'PHPEXCEL_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-post-import/Classes/PHPExcel/Shared/trend/linearBestFitClass.php on line 3
- > PHP Warning
Use of undefined constant PHPEXCEL_ROOT - assumed 'PHPEXCEL_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-post-import/Classes/PHPExcel/Shared/trend/logarithmicBestFitClass.php on line 3
- > PHP Warning
require_once(PHPEXCEL_ROOTPHPExcel/Shared/trend/bestFitClass.php): failed to open stream: No such file or directory in wp-content/plugins/wp-post-import/Classes/PHPExcel/Shared/trend/logarithmicBestFitClass.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Worksheet_BaseDrawing' not found in wp-content/plugins/wp-post-import/Classes/PHPExcel/Worksheet/Drawing.php:28
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in wp-content/plugins/wp-post-import/Classes/PHPExcel/Writer/OpenDocument/MetaInf.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (20 tag instead of maximum 10)
wp-post-import/wp-post-import.php 92% from 13 tests
"WP Post Import" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected56,264 lines of code in 220 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 217 | 10,238 | 34,010 | 55,850 |
CSS | 1 | 24 | 7 | 209 |
JavaScript | 2 | 167 | 27 | 205 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,019)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 387)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 47.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,019.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 387.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 206 | |
▷ Abstract classes | 10 | 4.85% |
▷ Concrete classes | 196 | 95.15% |
▷ Final classes | 0 | 0.00% |
Methods | 2,819 | |
▷ Static methods | 628 | 22.28% |
▷ Public methods | 2,227 | 79.00% |
▷ Protected methods | 80 | 2.84% |
▷ Private methods | 512 | 18.16% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 750 | |
▷ Global constants | 56 | 7.47% |
▷ Class constants | 694 | 92.53% |
▷ Public constants | 694 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/import-icon.png | 1.33KB | 0.63KB | ▼ 52.80% |