Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼7.84ms] Passed 4 tests
An overview of server-side resources used by SPPX Offerings
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 40.09 ▲1.35 |
Dashboard /wp-admin | 3.43 ▲0.08 | 44.99 ▼20.19 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 43.94 ▲3.71 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 83.73 ▼14.77 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.30 ▲2.26 |
Issues /wp-admin/edit.php?post_type=issue | 3.40 | 38.81 |
Add New Issue /wp-admin/post-new.php?post_type=issue | 6.10 | 81.03 |
Issue Plugin Menu /wp-admin/options-general.php?page=silicon_prairie_issues | 3.30 | 30.97 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 28 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 SPPX Offerings
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲164 | 13.34 ▼1.01 | 8.15 ▲6.46 | 42.07 ▼2.73 |
Dashboard /wp-admin | 2,233 ▲59 | 5.59 ▲0.02 | 82.96 ▼16.65 | 40.04 ▼4.28 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.02 ▲0.05 | 33.38 ▼3.71 | 31.61 ▼8.23 |
Add New Post /wp-admin/post-new.php | 1,556 ▲21 | 23.09 ▲5.07 | 672.78 ▲32.13 | 63.83 ▲14.56 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.24 ▲0.03 | 105.24 ▲9.16 | 47.27 ▲6.62 |
Issues /wp-admin/edit.php?post_type=issue | 1,116 | 1.96 | 35.22 | 30.09 |
Add New Issue /wp-admin/post-new.php?post_type=issue | 6,258 | 20.01 | 854.14 | 38.71 |
Issue Plugin Menu /wp-admin/options-general.php?page=silicon_prairie_issues | 820 | 2.00 | 26.51 | 34.89 |
Uninstaller [IO: ▲0.09MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attentionThis plugin did not uninstall successfully, leaving 7 options in the database
- Uninstall procedure validation failed for this plugin
- > Error in wp-content/plugins/sppx-offerings/includes/class-silicon_prairie_issues-deactivator.php+34
Uncaught Error: Call to undefined function flush_rerwrite_rules() in wp-content/plugins/sppx-offerings/includes/class-silicon_prairie_issues-deactivator.php:34
Stack trace:
#0 wp-content/plugins/sppx-offerings/silicon_prairie_issues.php(55): Silicon_prairie_issues_Deactivator::deactivate()
#1 wp-includes/class-wp-hook.php(310): deactivate_silicon_prairie_issues()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(816): do_action() - The plugin did not uninstall successfully, leaving 28 files (0.09MB) in the plugin directory
- (new file) admin/index.php
- (new file) admin/css/silicon_prairie_issues-admin.css
- (new file) includes/class-silicon_prairie_issues-i18n.php
- (new file) README.txt
- (new file) LICENSE.txt
- (new file) admin/js/silicon_prairie_issues-admin.js
- (new file) admin/class-silicon_prairie_issues-admin.php
- (new file) includes/class-silicon_prairie_issues-activator.php
- (new file) includes/class-silicon_prairie_issues-deactivator.php
- (new file) admin/partials/silicon_prairie_issues-admin-display.php
- ...
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- recovery_mode_email_last_sent
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 25% 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=silicon_prairie_issues
- > Notice in wp-content/plugins/sppx-offerings/admin/class-silicon_prairie_issues-admin.php+134
Trying to access array offset on value of type bool
SRP 0% 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 fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/sppx-offerings/public/partials/silicon_prairie_issues-public-display.php
- > /wp-content/plugins/sppx-offerings/admin/partials/silicon_prairie_issues-admin-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/sppx-offerings/public/templates/single-deal.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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 your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Issue creation form.), #2 (Plugin settings page.)
sppx-offerings/silicon_prairie_issues.php 85% from 13 tests
The main PHP file in "SPPX Offerings" ver. 1.0.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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sppx-offerings.php" instead of "silicon_prairie_issues.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
No dangerous file extensions were detected1,384 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 245 | 615 | 966 |
CSS | 2 | 113 | 38 | 412 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 4.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 3 | 8.33% |
▷ Public methods | 30 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 16.67% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/templates/images/application-pdf.png | 0.34KB | 0.39KB | 0.00% |