Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/sdstudio-portfolio-for-google-reviews/sdstudio_grfp.php+558
Undefined index: post_type
Server metrics [RAM: ▲0.30MB] [CPU: ▼1.73ms] Passed 4 tests
An overview of server-side resources used by SDStudio Google Reviews for portfolio
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 43.56 ▲4.57 |
Dashboard /wp-admin | 3.64 ▲0.33 | 51.66 ▲0.55 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 48.64 ▼2.75 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 90.38 ▼9.27 |
Media Library /wp-admin/upload.php | 3.49 ▲0.27 | 37.43 ▲4.94 |
Google Reviews Categories /wp-admin/edit-tags.php?taxonomy=category_google_reviews&post_type=sds_google_reviews | 3.49 | 40.74 |
SDStudio Google Reviews /wp-admin/edit.php?post_type=sds_google_reviews | 3.54 | 38.31 |
Add New /wp-admin/post-new.php?post_type=sds_google_reviews | 6.31 | 86.79 |
Server storage [IO: ▲9.70MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 585 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by SDStudio Google Reviews for portfolio
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,975 ▲189 | 13.95 ▼0.44 | 7.50 ▲5.24 | 39.86 ▼0.88 |
Dashboard /wp-admin | 2,298 ▲121 | 5.80 ▲0.18 | 95.47 ▲4.33 | 38.18 ▼15.39 |
Posts /wp-admin/edit.php | 2,203 ▲100 | 2.38 ▲0.36 | 42.52 ▲2.30 | 34.28 ▼2.06 |
Add New Post /wp-admin/post-new.php | 1,580 ▲54 | 23.35 ▲0.38 | 693.26 ▲24.60 | 55.23 ▲5.00 |
Media Library /wp-admin/upload.php | 1,500 ▲97 | 4.30 ▲0.14 | 105.92 ▲3.28 | 47.98 ▲4.76 |
Google Reviews Categories /wp-admin/edit-tags.php?taxonomy=category_google_reviews&post_type=sds_google_reviews | 1,374 | 2.48 | 33.20 | 32.93 |
SDStudio Google Reviews /wp-admin/edit.php?post_type=sds_google_reviews | 1,220 | 2.30 | 37.34 | 30.28 |
Add New /wp-admin/post-new.php?post_type=sds_google_reviews | 6,314 | 20.36 | 866.43 | 34.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/sdstudio-portfolio-for-google-reviews/sdstudio_grfp.php+558
Undefined index: post_type
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/edit.php?post_type=sds_google_reviews
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/sdstudio-portfolio-for-google-reviews/sdstudio_grfp.php+558
Undefined index: post_type
SRP 0% from 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
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sdstudio-portfolio-for-google-reviews/admin/partials/sdstudio_grfp-admin-display.php
- > /wp-content/plugins/sdstudio-portfolio-for-google-reviews/public/partials/sdstudio_grfp-public-display.php
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPHtmlParser\\Dom\\LeafNode' not found in wp-content/plugins/sdstudio-portfolio-for-google-reviews/php-html-parser-master/vendor/paquettg/php-html-parser/src/PHPHtmlParser/Dom/TextNode.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPHtmlParser\\Dom\\AbstractNode' not found in wp-content/plugins/sdstudio-portfolio-for-google-reviews/php-html-parser-master/vendor/paquettg/php-html-parser/src/PHPHtmlParser/Dom/ArrayNode.php:12
- > PHP Fatal error
Uncaught Error: Interface 'PHPHtmlParser\\Selector\\ParserInterface' not found in wp-content/plugins/sdstudio-portfolio-for-google-reviews/php-html-parser-master/vendor/paquettg/php-html-parser/src/PHPHtmlParser/Selector/Parser.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPHtmlParser\\Dom\\ArrayNode' not found in wp-content/plugins/sdstudio-portfolio-for-google-reviews/php-html-parser-master/vendor/paquettg/php-html-parser/src/PHPHtmlParser/Dom/InnerNode.php:13
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/sdstudio-portfolio-for-google-reviews/php-html-parser-master/vendor/paquettg/string-encode/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/sdstudio-portfolio-for-google-reviews/php-html-parser-master/vendor/paquettg/string-encode/phpunit.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'PHPHtmlParser\\Dom\\InnerNode' not found in wp-content/plugins/sdstudio-portfolio-for-google-reviews/php-html-parser-master/vendor/paquettg/php-html-parser/src/PHPHtmlParser/Dom/MockNode.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPHtmlParser\\Dom\\AbstractNode' not found in wp-content/plugins/sdstudio-portfolio-for-google-reviews/php-html-parser-master/vendor/paquettg/php-html-parser/src/PHPHtmlParser/Dom/LeafNode.php:10
- > PHP Fatal error
Uncaught Error: Interface 'PHPHtmlParser\\CurlInterface' not found in wp-content/plugins/sdstudio-portfolio-for-google-reviews/php-html-parser-master/vendor/paquettg/php-html-parser/src/PHPHtmlParser/Curl.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPHtmlParser\\Dom\\InnerNode' not found in wp-content/plugins/sdstudio-portfolio-for-google-reviews/php-html-parser-master/vendor/paquettg/php-html-parser/src/PHPHtmlParser/Dom/HtmlNode.php:12
- > PHP Warning
require(wp-content/plugins/sdstudio-portfolio-for-google-reviews/php-html-parser-master/vendor/paquettg/string-encode/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/sdstudio-portfolio-for-google-reviews/php-html-parser-master/vendor/paquettg/string-encode/phpunit.php on line 15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=sds_google_reviews
- > Javascript (severe) in unknown
/wp-content/plugins/sdstudio-portfolio-for-google-reviews/admin/js/sdstudio_grfp-admin.js?ver=1.0.2 45:29 Uncaught SyntaxError: Unexpected token '
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: google, portfolio, reviews, graber, get
sdstudio-portfolio-for-google-reviews/sdstudio_grfp.php 85% from 13 tests
Analyzing the main PHP file in "SDStudio Google Reviews for portfolio" version 1.0.2
The following require your attention:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Name the main plugin file the same as the plugin slug ("sdstudio-portfolio-for-google-reviews.php" instead of "sdstudio_grfp.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
It is important to fix the following items
- Do not distribute dangerous files with your plugin
- .url - Internet Shortcut in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/sdstudio-portfolio-for-google-reviews/php-html-parser-master/php-html-parser.url
- ☣ wp-content/plugins/sdstudio-portfolio-for-google-reviews/admin/sweetalert2/test/sweetalert2.github.io.url
- ☣ wp-content/plugins/sdstudio-portfolio-for-google-reviews/admin/sweetalert2/sweetalert2.github.io.url
- .url - Internet Shortcut in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 176 | 5,205 | 8,432 | 13,171 |
PHP | 193 | 3,215 | 8,735 | 11,083 |
CSS | 23 | 475 | 1,186 | 3,276 |
PO File | 22 | 754 | 975 | 2,086 |
Sass | 48 | 327 | 0 | 1,723 |
JSON | 8 | 0 | 0 | 527 |
HTML | 1 | 122 | 0 | 356 |
SVG | 2 | 0 | 0 | 123 |
Markdown | 6 | 43 | 0 | 102 |
YAML | 2 | 4 | 0 | 51 |
XML | 2 | 1 | 0 | 33 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 159 | |
▷ Abstract classes | 15 | 9.43% |
▷ Concrete classes | 144 | 90.57% |
▷ Final classes | 9 | 6.25% |
Methods | 1,107 | |
▷ Static methods | 104 | 9.39% |
▷ Public methods | 915 | 82.66% |
▷ Protected methods | 182 | 16.44% |
▷ Private methods | 10 | 0.90% |
Functions | 116 | |
▷ Named functions | 35 | 30.17% |
▷ Anonymous functions | 81 | 69.83% |
Constants | 29 | |
▷ Global constants | 6 | 20.69% |
▷ Class constants | 23 | 79.31% |
▷ Public constants | 23 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
31 PNG files occupy 1.39MB with 0.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/AnimatedButtons/images/icons/2.png | 6.53KB | 3.01KB | ▼ 53.86% |
admin/AnimatedButtons/css/websymbols/specimen_files/websymbols-regular-cleartype.png | 87.83KB | 50.22KB | ▼ 42.82% |
assets/screenshot-4.png | 166.93KB | 67.37KB | ▼ 59.64% |
assets/screenshot-2.png | 260.00KB | 97.17KB | ▼ 62.63% |
admin/AnimatedButtons/images/stucco.png | 34.47KB | 37.45KB | 0.00% |