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.40MB] [CPU: ▼15.73ms] Passed 4 tests
A check of server-side resources used by Schema Ninja
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 43.57 ▲4.16 |
Dashboard /wp-admin | 3.60 ▲0.30 | 49.89 ▼3.35 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 48.45 ▼4.35 |
Add New Post /wp-admin/post-new.php | 3.40 ▼2.49 | 40.60 ▼59.37 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 35.68 ▲5.36 |
All Recommendations /wp-admin/edit.php?post_type=recommendations | 3.54 | 37.82 |
Add New /wp-admin/post-new.php?post_type=recommendations | 3.40 | 36.17 |
Server storage [IO: ▲1.72MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 82 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Schema Ninja
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,969 ▲208 | 13.43 ▼1.13 | 8.32 ▲6.74 | 33.56 ▼9.68 |
Dashboard /wp-admin | 2,247 ▲70 | 5.80 ▲0.18 | 85.69 ▼4.50 | 85.79 ▲38.50 |
Posts /wp-admin/edit.php | 2,180 ▲80 | 2.03 ▲0.02 | 39.06 ▼2.37 | 39.46 ▲1.53 |
Add New Post /wp-admin/post-new.php | 1,592 ▲66 | 18.32 ▼4.73 | 765.91 ▲127.78 | 54.45 ▲6.50 |
Media Library /wp-admin/upload.php | 1,464 ▲70 | 4.13 ▼0.06 | 100.91 ▲1.70 | 67.36 ▲22.39 |
All Recommendations /wp-admin/edit.php?post_type=recommendations | 1,156 | 1.98 | 38.25 | 34.23 |
Add New /wp-admin/post-new.php?post_type=recommendations | 1,672 | 3.49 | 61.70 | 69.09 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/review_data.php+9
Undefined index: review_title1
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/review_data.php+18
Undefined index: review_name
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/review_data.php+28
Undefined index: review_price
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/review_data.php+37
Undefined index: review_title
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/review_data.php+46
Undefined index: review_position
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/review_data.php+55
Undefined index: review_currency
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/review_data.php+64
Undefined index: review_show
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/review_data.php+73
Undefined index: review_rating
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/review_data.php+82
Undefined index: review_btn_text
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/review_data.php+91
Undefined index: specs_btn_text
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/review_data.php+100
Undefined index: summary_btn_text
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/review_data.php+109
Undefined index: try_btn_text
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/review_data.php+118
Undefined index: review_url
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/review_data.php+127
Undefined index: review_summary
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/review_data.php+136
Undefined index: review_numvotes
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/review_data.php+145
Undefined index: review_pros
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Warning in wp-content/plugins/schemaninja/admin/review_data.php+167
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/review_data.php+160
Undefined index: review_cons
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/recommendation_data.php+108
Undefined index: rating_count
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/review_data.php+180
Undefined index: review_0_metric
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/review_data.php+198
Undefined index: spec_count
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/review_data.php+203
Undefined index: spec_0_metric
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/recommendation_data.php+5
Undefined index: recommendation_price
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/recommendation_data.php+14
Undefined index: recommendation_title1
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/recommendation_data.php+23
Undefined index: recommendation_trybtn
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/recommendation_data.php+32
Undefined index: recommendation_currency
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/recommendation_data.php+41
Undefined index: recommendation_rating
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/recommendation_data.php+50
Undefined index: recommendation_pros
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/recommendation_data.php+65
Undefined index: recommendation_cons
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/recommendation_data.php+80
Undefined index: recommendation_url
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/recommendation_data.php+89
Undefined index: custom_url
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/recommendation_data.php+98
Undefined index: rec_short_dec
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/recommendation_data.php+116
Undefined variable: metrics
- > GET request to /wp-admin/post-new.php?post_type=recommendations
- > Notice in wp-content/plugins/schemaninja/admin/recommendation_data.php+117
Undefined variable: values
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/schemaninja/templates/recommendation_admin_metabox.php
- 52× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: rating in wp-content/plugins/schemaninja/templates/recommendation_admin_metabox.php on line 23
- > PHP Notice
Undefined variable: i in wp-content/plugins/schemaninja/templates/recommendation_admin_metabox.php on line 203
- > PHP Notice
Undefined variable: cons_count in wp-content/plugins/schemaninja/templates/recommendation_admin_metabox.php on line 102
- > PHP Notice
Undefined variable: pros_count in wp-content/plugins/schemaninja/templates/recommendation_admin_metabox.php on line 55
- > PHP Notice
Undefined variable: rating in wp-content/plugins/schemaninja/templates/recommendation_admin_metabox.php on line 18
- > PHP Notice
Undefined variable: ratings in wp-content/plugins/schemaninja/templates/recommendation_admin_metabox.php on line 161
- > PHP Notice
Undefined variable: pros_count in wp-content/plugins/schemaninja/templates/recommendation_admin_metabox.php on line 266
- > PHP Notice
Undefined variable: pros in wp-content/plugins/schemaninja/templates/recommendation_admin_metabox.php on line 58
- > PHP Notice
Undefined variable: cons_count in wp-content/plugins/schemaninja/templates/recommendation_admin_metabox.php on line 273
- > PHP Notice
Undefined variable: url in wp-content/plugins/schemaninja/templates/recommendation_admin_metabox.php on line 150
- > PHP Notice
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 23 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (2.), #3 (4.), #5 ()
schemaninja/schema-ninja.php 85% from 13 tests
The principal PHP file in "Schema Ninja" v. 2.3.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("schemaninja.php" instead of "schema-ninja.php")
- Description: Keep the plugin description shorter than 140 characters (currently 249 characters long)
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
There were no executable files found in this plugin15,770 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 77 | 81 | 5,887 |
SVG | 3 | 0 | 0 | 2,673 |
PHP | 14 | 114 | 148 | 2,059 |
Sass | 15 | 37 | 53 | 1,947 |
LESS | 14 | 34 | 44 | 1,758 |
JavaScript | 3 | 368 | 194 | 1,427 |
XML | 4 | 0 | 0 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 25.00% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.21MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/minus-icon.png | 0.83KB | 0.54KB | ▼ 34.91% |
assets/img/plus-icon.png | 0.93KB | 0.60KB | ▼ 35.88% |
assets/img/menu-icon.png | 1.69KB | 1.14KB | ▼ 32.49% |
screenshot-5.png | 35.00KB | 16.58KB | ▼ 52.64% |
assets/img/menu-icon-2.png | 1.18KB | 0.77KB | ▼ 34.90% |