Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼7.62ms] Passed 4 tests
A check of server-side resources used by Pepperi Open Catalog
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 36.67 ▼6.05 |
Dashboard /wp-admin | 3.46 ▲0.15 | 47.67 ▼7.45 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 48.23 ▼1.37 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 81.31 ▼15.06 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 36.00 ▼1.91 |
Pepperi Open Catalog /wp-admin/options-general.php?page=PepperiOpenCatalogSettings | 3.32 | 33.70 |
Server storage [IO: ▲8.43MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Pepperi Open Catalog
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲177 | 22.89 ▲8.23 | 110.06 ▲108.22 | 56.07 ▲9.54 |
Dashboard /wp-admin | 2,205 ▲28 | 5.62 ▼0.03 | 89.69 ▲1.09 | 41.52 ▲1.74 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.00 ▲0.02 | 33.43 ▼2.09 | 32.52 ▼3.02 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 22.98 ▼0.73 | 624.86 ▼81.59 | 54.67 ▼5.96 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.25 ▲0.06 | 96.66 ▼13.03 | 41.49 ▼2.97 |
Pepperi Open Catalog /wp-admin/options-general.php?page=PepperiOpenCatalogSettings | 806 | 2.00 | 25.40 | 26.56 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
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
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=PepperiOpenCatalogSettings
- > Notice in wp-content/plugins/pepperi-open-catalog/inc/settings.php+367
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=PepperiOpenCatalogSettings
- > Notice in wp-content/plugins/pepperi-open-catalog/inc/settings.php+367
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pepperi-open-catalog/ajax/Ajax.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/pepperi-open-catalog/inc/settings.php:504
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/pepperi-open-catalog/inc/settings.php:504
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Pepperi Open Catalog allows to add a top bar with your categories dropdown and search box)
- Donate link: Invalid url: ""
pepperi-open-catalog/wp-pepOpenCatalog.php 92% from 13 tests
The principal PHP file in "Pepperi Open Catalog" v. 1.1.0 is loaded by WordPress automatically on each request
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 ("pepperi-open-catalog.php" instead of "wp-pepOpenCatalog.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin2,957 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 209 | 106 | 1,178 |
JSON | 13 | 0 | 0 | 1,051 |
PHP | 4 | 195 | 78 | 561 |
CSS | 2 | 38 | 12 | 124 |
SVG | 2 | 0 | 1 | 43 |
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.28 |
Average class complexity | 15.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 8 | 17.02% |
▷ Public methods | 46 | 97.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.13% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 25.85KB | 9.19KB | ▼ 64.44% |
assets/icon-128x128.png | 12.00KB | 4.61KB | ▼ 61.61% |