Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/loveitcom-importer/loveit-importer-class.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; LoveIt_WP_Importer has a deprecated constructor
Server metrics [RAM: ▼1.59MB] [CPU: ▼46.98ms] Passed 4 tests
Analyzing server-side resources used by LoveIt.com Importer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.93 ▼2.48 |
Dashboard /wp-admin | 2.35 ▼0.95 | 6.75 ▼48.36 |
Posts /wp-admin/edit.php | 2.35 ▼1.00 | 7.50 ▼37.40 |
Add New Post /wp-admin/post-new.php | 2.35 ▼3.53 | 7.35 ▼79.15 |
Media Library /wp-admin/upload.php | 2.35 ▼0.87 | 9.56 ▼23.00 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 85 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
LoveIt.com Importer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.25 ▼1.37 | 1.73 ▲0.01 | 41.74 ▼1.62 |
Dashboard /wp-admin | 2,203 ▲15 | 5.82 ▲0.92 | 97.83 ▼48.68 | 38.72 ▼29.32 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.02 | 34.30 ▼2.82 | 31.10 ▼1.75 |
Add New Post /wp-admin/post-new.php | 1,533 ▲20 | 23.44 ▲5.64 | 699.30 ▲38.06 | 54.47 ▼0.16 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.23 ▼0.01 | 92.41 ▼9.51 | 40.79 ▼5.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/loveitcom-importer/loveit-importer-class.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; LoveIt_WP_Importer has a deprecated constructor
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 122× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: self in wp-content/plugins/loveitcom-importer/_inc/lib/phpQuery/phpQuery/plugins/Scripts/print_source.php on line 8
- > PHP Warning
require_once(Zend/Validate/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/loveitcom-importer/_inc/lib/phpQuery/phpQuery/Zend/Validate/File/Extension.php on line 25
- > PHP Warning
require_once(Zend/Http/Client/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/loveitcom-importer/_inc/lib/phpQuery/phpQuery/Zend/Http/Client/Adapter/Exception.php on line 23
- > PHP Fatal error
require_once(): Failed opening required 'Zend/Validate/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/loveitcom-importer/_inc/lib/phpQuery/phpQuery/Zend/Validate/Identical.php on line 23
- > PHP Warning
require_once(Zend/Validate/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/loveitcom-importer/_inc/lib/phpQuery/phpQuery/Zend/Validate/Barcode/UpcA.php on line 27
- > PHP Fatal error
require_once(): Failed opening required 'Zend/Validate/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/loveitcom-importer/_inc/lib/phpQuery/phpQuery/Zend/Validate/LessThan.php on line 27
- > PHP Warning
require_once(Zend/Validate/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/loveitcom-importer/_inc/lib/phpQuery/phpQuery/Zend/Validate/EmailAddress.php on line 27
- > PHP Warning
require_once(Zend/Validate/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/loveitcom-importer/_inc/lib/phpQuery/phpQuery/Zend/Validate/File/Upload.php on line 25
- > PHP Fatal error
require_once(): Failed opening required 'Zend/Validate/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/loveitcom-importer/_inc/lib/phpQuery/phpQuery/Zend/Validate/Barcode/UpcA.php on line 27
- > PHP Fatal error
require_once(): Failed opening required 'Zend/Loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/loveitcom-importer/_inc/lib/phpQuery/phpQuery/Zend/Http/Client.php on line 27
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: pins, loveit, importer, loveitcom
loveitcom-importer/loveit-importer.php 92% from 13 tests
The main PHP file in "LoveIt.com Importer" ver. 0.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("loveitcom-importer.php" instead of "loveit-importer.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
Good job! No executable or dangerous file extensions detected9,698 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 83 | 1,712 | 8,045 | 9,698 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 23.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 555.00 |
Average method complexity | 4.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 81 | |
▷ Abstract classes | 8 | 9.88% |
▷ Concrete classes | 73 | 90.12% |
▷ Final classes | 0 | 0.00% |
Methods | 643 | |
▷ Static methods | 142 | 22.08% |
▷ Public methods | 552 | 85.85% |
▷ Protected methods | 84 | 13.06% |
▷ Private methods | 7 | 1.09% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 108 | |
▷ Global constants | 5 | 4.63% |
▷ Class constants | 103 | 95.37% |
▷ Public constants | 103 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin