Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.31MB] [CPU: ▼4.29ms] Passed 4 tests
An overview of server-side resources used by Official Pricerunner Product Feed
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 42.77 ▲3.01 |
Dashboard /wp-admin | 3.63 ▲0.33 | 48.52 ▲0.53 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 47.28 ▼4.69 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 86.52 ▼15.99 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 36.05 ▲5.46 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
pricerunner_feed_hash |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Official Pricerunner Product Feed
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲106 | 13.57 ▼1.06 | 1.91 ▲0.26 | 42.54 ▼0.06 |
Dashboard /wp-admin | 2,222 ▲37 | 5.00 ▼0.11 | 100.10 ▲0.22 | 37.40 ▼7.30 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.01 ▼0.03 | 32.30 ▼10.59 | 35.46 ▼1.06 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 23.42 ▲5.13 | 678.17 ▲65.67 | 54.22 ▼5.32 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.14 ▲0.03 | 93.15 ▼9.61 | 41.12 ▼0.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
3 plugin tags: feed, service, pricerunner
official-pricerunner-product-feed/pricerunner-feed.php 77% from 13 tests
The main PHP script in "Official Pricerunner Product Feed" version 1.1.2 is automatically included on every request by WordPress
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("official-pricerunner-product-feed.php" instead of "pricerunner-feed.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,815 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 572 | 750 | 1,785 |
CSS | 1 | 4 | 0 | 22 |
Markdown | 2 | 6 | 0 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 7.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 160 | |
▷ Static methods | 17 | 10.62% |
▷ Public methods | 102 | 63.75% |
▷ Protected methods | 44 | 27.50% |
▷ Private methods | 14 | 8.75% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 2 | 10.53% |
▷ Class constants | 17 | 89.47% |
▷ Public constants | 17 | 100.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
PNG images were not found in this plugin