Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.68MB] [CPU: ▲6.80ms] Passed 4 tests
An overview of server-side resources used by Pinterest Importer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 50.02 ▲9.46 |
Dashboard /wp-admin | 4.19 ▲0.89 | 55.13 ▲6.40 |
Posts /wp-admin/edit.php | 4.24 ▲0.88 | 59.44 ▲5.75 |
Add New Post /wp-admin/post-new.php | 6.71 ▲0.82 | 102.73 ▲5.58 |
Media Library /wp-admin/upload.php | 4.05 ▲0.82 | 48.53 ▲13.00 |
Add New /wp-admin/post-new.php?post_type=pin | 4.15 | 50.23 |
Pending importation /wp-admin/edit.php?post_type=pin&page=pending-importation | 4.06 | 41.94 |
Pins /wp-admin/edit.php?post_type=pin | 4.13 | 37.23 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=pin | 4.17 | 46.17 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=pin | 4.17 | 37.66 |
Settings /wp-admin/edit.php?post_type=pin&page=settings | 4.00 | 38.68 |
Pinterest Account /wp-admin/edit.php?post_type=pin&page=account | 4.00 | 37.09 |
Pinterest Boards /wp-admin/edit.php?post_type=pin&page=boards | 4.06 | 41.78 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 150 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
_pinterest-importer-db_version |
category_children |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Pinterest Importer: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲82 | 14.72 ▼0.00 | 1.91 ▲0.15 | 44.49 ▲0.73 |
Dashboard /wp-admin | 2,246 ▲78 | 5.64 ▲0.07 | 97.60 ▲5.40 | 45.84 ▼4.81 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 2.04 ▲0.02 | 39.68 ▼2.24 | 35.75 ▼2.24 |
Add New Post /wp-admin/post-new.php | 1,567 ▲39 | 23.65 ▲0.62 | 656.32 ▼63.86 | 54.71 ▼23.08 |
Media Library /wp-admin/upload.php | 1,454 ▲54 | 4.19 ▼0.02 | 108.73 ▼2.73 | 44.76 ▼1.79 |
Add New /wp-admin/post-new.php?post_type=pin | 2,956 | 8.00 | 185.81 | 76.53 |
Pending importation /wp-admin/edit.php?post_type=pin&page=pending-importation | 1,061 | 1.83 | 26.63 | 29.43 |
Pins /wp-admin/edit.php?post_type=pin | 1,237 | 1.96 | 34.10 | 27.91 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=pin | 1,503 | 2.25 | 31.49 | 33.77 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=pin | 1,370 | 2.12 | 26.67 | 27.63 |
Settings /wp-admin/edit.php?post_type=pin&page=settings | 947 | 2.02 | 26.72 | 30.89 |
Pinterest Account /wp-admin/edit.php?post_type=pin&page=account | 872 | 2.05 | 23.76 | 30.79 |
Pinterest Boards /wp-admin/edit.php?post_type=pin&page=boards | 1,145 | 1.71 | 27.82 | 29.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- can_compress_scripts
- _pinterest-importer-db_version
- category_children
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=pin&page=boards
- > Warning in wp-content/plugins/pinterest-importer/pinterest-importer.php+411
count(): Parameter must be an array or an object that implements Countable
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
Almost there! Just fix the following items
- 86× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/pinterest-importer/pinim-classes.php on line 862
- > PHP Fatal error
Uncaught Error: Class 'seregazhuk\\PinterestBot\\Api\\Providers\\Core\\EntityProvider' not found in wp-content/plugins/pinterest-importer/_inc/php/vendor/seregazhuk/pinterest-bot/src/Api/Providers/Core/FollowableProvider.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/pinterest-importer/_inc/php/vendor/seregazhuk/pinterest-bot/tests/Bot/Providers/Core/ProviderTest.php:18
- > PHP Warning
require(wp-content/plugins/pinterest-importer/_inc/php/vendor/seregazhuk/pinterest-bot/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/pinterest-importer/_inc/php/vendor/seregazhuk/pinterest-bot/examples/followers.php on line 3
- > PHP Warning
require(wp-content/plugins/pinterest-importer/_inc/php/vendor/seregazhuk/pinterest-bot/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/pinterest-importer/_inc/php/vendor/seregazhuk/pinterest-bot/examples/pins_parser.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'seregazhuk\\PinterestBot\\Api\\Providers\\Core\\Provider' not found in wp-content/plugins/pinterest-importer/_inc/php/vendor/seregazhuk/pinterest-bot/src/Api/Providers/Inbox.php:11
- > PHP Fatal error
Uncaught Error: Class 'seregazhuk\\PinterestBot\\Api\\Providers\\Core\\Provider' not found in wp-content/plugins/pinterest-importer/_inc/php/vendor/seregazhuk/pinterest-bot/src/Api/Providers/Interests.php:10
- > PHP Fatal error
Uncaught Error: Class 'seregazhuk\\PinterestBot\\Api\\Forms\\Form' not found in wp-content/plugins/pinterest-importer/_inc/php/vendor/seregazhuk/pinterest-bot/src/Api/Forms/Registration.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pinterest-importer/pinim-pending-imports.php:22
- > PHP Fatal error
Uncaught Error: Class 'seregazhuk\\PinterestBot\\Api\\Providers\\Core\\Provider' not found in wp-content/plugins/pinterest-importer/_inc/php/vendor/seregazhuk/pinterest-bot/src/Api/Providers/Core/EntityProvider.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: backup, pinterest, importer, pins
pinterest-importer/pinterest-importer.php 92% from 13 tests
The entry point to "Pinterest Importer" version 0.7.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 164 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin11,148 lines of code in 141 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 113 | 2,799 | 3,631 | 8,678 |
Markdown | 16 | 574 | 0 | 1,742 |
Sass | 2 | 65 | 3 | 270 |
CSS | 1 | 2 | 56 | 234 |
JSON | 3 | 0 | 0 | 104 |
YAML | 3 | 12 | 0 | 49 |
JavaScript | 1 | 24 | 49 | 34 |
XML | 1 | 0 | 0 | 29 |
Ruby | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 6.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 2 | |
Traits | 19 | |
Classes | 85 | |
▷ Abstract classes | 5 | 5.88% |
▷ Concrete classes | 80 | 94.12% |
▷ Final classes | 0 | 0.00% |
Methods | 788 | |
▷ Static methods | 20 | 2.54% |
▷ Public methods | 613 | 77.79% |
▷ Protected methods | 153 | 19.42% |
▷ Private methods | 22 | 2.79% |
Functions | 68 | |
▷ Named functions | 29 | 42.65% |
▷ Anonymous functions | 39 | 57.35% |
Constants | 110 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 110 | 100.00% |
▷ Public constants | 110 | 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
PNG images were not found in this plugin