Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.45ms] Passed 4 tests
An overview of server-side resources used by SPR Posts Import
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 43.24 ▼1.02 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.69 ▼2.85 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 44.67 ▼2.28 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.14 ▼19.37 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.50 ▼5.28 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 91 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for SPR Posts Import
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.06 ▼0.23 | 1.66 ▼0.46 | 45.33 ▲3.46 |
Dashboard /wp-admin | 2,196 ▲16 | 5.55 ▼0.12 | 95.81 ▲5.88 | 39.71 ▲2.20 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.03 | 35.19 ▼3.65 | 34.61 ▼1.55 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.78 ▲0.66 | 655.54 ▼40.04 | 53.30 ▼6.28 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.23 ▲0.07 | 101.28 ▼10.52 | 47.15 ▼2.87 |
SPR Posts Import /wp-admin/spr-posts-import.php | 26 | 0.42 | 0.06 | 18.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 8× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/examples/xml-sequence-stream.php
- > /wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/examples/read-into-dom.php
- > /wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/examples/read-write.php
- > /wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/examples/element-iterator.php
- > /wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/examples/xpath.php
- > /wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/examples/xml-file-scanner.php
- > /wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/examples/xmlreader-standard.php
- > /wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/build.php
- 24× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'XMLAttributeFilterBase' not found in wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/src/XMLAttributeFilter.php:29
- > PHP Fatal error
Uncaught Error: Interface 'XMLReaderAggregate' not found in wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/src/XMLReaderNode.php:27
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/tests/unit/XMLElementIteratorTest.php:24
- > PHP Notice
Undefined offset: 0 in wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/build.php on line 110
- > PHP Fatal error
Uncaught Error: Interface 'XMLReaderAggregate' not found in wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/src/XMLAttributeIterator.php:29
- > PHP Fatal error
Uncaught Error: Class 'XMLReaderFilterBase' not found in wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/src/XMLElementXpathFilter.php:31
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/tests/unit/XMLChildElementIteratorTest.php:25
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/tests/unit/XMLReaderElementTest.php:24
- > PHP Fatal error
Uncaught Error: Class 'XMLElementIterator' not found in wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/src/XMLChildElementIterator.php:29
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/tests/unit/XMLReaderIteratorTest.php:24
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/spr-posts-import.php
- > Network (severe)
wp-admin/spr-posts-import.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== spr-posts-import ===
)
spr-posts-import/spr_posts_import.php 85% from 13 tests
Analyzing the main PHP file in "SPR Posts Import" version 1.1
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("spr-posts-import.php" instead of "spr_posts_import.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
It is important to fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .out - Executable in Linux
- ☣ wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/tests/functional/examples/Expectations/element-iterator_php.out
- ☣ wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/tests/functional/examples/Expectations/read-into-dom_php.out
- ☣ wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/tests/functional/examples/Expectations/read-write_php.out
- ☣ wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/tests/functional/examples/Expectations/xml-file-scanner_php.out
- ☣ wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/tests/functional/examples/Expectations/xml-sequence-stream_php.out
- ☣ wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/tests/functional/examples/Expectations/xmlreader-standard_php.out
- ☣ wp-content/plugins/spr-posts-import/vendor/hakre/xmlreaderiterator/tests/functional/examples/Expectations/xpath_php.out
- .out - Executable in Linux
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 59 | 1,357 | 2,401 | 4,663 |
XML | 10 | 2 | 13 | 250 |
JSON | 3 | 4 | 0 | 86 |
CSS | 1 | 19 | 8 | 49 |
Markdown | 2 | 22 | 0 | 36 |
JavaScript | 1 | 8 | 8 | 26 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 9.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 63 | |
▷ Abstract classes | 6 | 9.52% |
▷ Concrete classes | 57 | 90.48% |
▷ Final classes | 2 | 3.51% |
Methods | 399 | |
▷ Static methods | 26 | 6.52% |
▷ Public methods | 352 | 88.22% |
▷ Protected methods | 4 | 1.00% |
▷ Private methods | 43 | 10.78% |
Functions | 16 | |
▷ Named functions | 16 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/hr_slashed_3-high.png | 3.58KB | 1.83KB | ▼ 48.99% |
images/bg_lined.png | 4.05KB | 2.87KB | ▼ 29.03% |
images/hr_slashed.png | 1.07KB | 0.31KB | ▼ 70.72% |
images/sprite.png | 53.75KB | 17.06KB | ▼ 68.27% |