Benchmarks
Plugin footprint 65% 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.42MB] [CPU: ▲6.39ms] Passed 4 tests
Analyzing server-side resources used by 360 Generator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.39 | 52.00 ▲5.46 |
Dashboard /wp-admin | 3.78 ▲0.46 | 54.29 ▲3.42 |
Posts /wp-admin/edit.php | 3.83 ▲0.46 | 59.33 ▲8.33 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 107.66 ▲16.37 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 45.40 ▲8.36 |
Settings /wp-admin/admin.php?page=pg-360-generator/admin/partials/pg360_setting.php | 3.61 | 46.17 |
Help/Feedback /wp-admin/admin.php?page=pg-360-generator/admin/partials/pg360_help.php | 3.60 | 46.35 |
360° Gallery /wp-admin/admin.php?page=pg-360-generator/admin/partials/pg360_gallery.php | 3.61 | 42.22 |
Add 360° /wp-admin/admin.php?page=pg-360-generator/admin/partials/pg360_new.php | 3.60 | 48.41 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 44 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_pg360_images_details |
wp_pg360_project_details |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
pg360_db_version |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
360 Generator: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,035 ▲246 | 14.05 ▲0.78 | 17.29 ▲14.96 | 41.75 ▼2.59 |
Dashboard /wp-admin | 2,224 ▲18 | 4.86 ▼0.02 | 105.66 ▼0.83 | 68.94 ▲30.52 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 1.98 ▼0.05 | 38.48 ▼3.01 | 34.41 ▼2.67 |
Add New Post /wp-admin/post-new.php | 1,677 ▲158 | 24.86 ▲1.75 | 793.62 ▲145.27 | 29.10 ▼35.44 |
Media Library /wp-admin/upload.php | 1,530 ▲142 | 4.92 ▲0.70 | 112.00 ▲8.97 | 93.74 ▲48.03 |
Settings /wp-admin/admin.php?page=pg-360-generator/admin/partials/pg360_setting.php | 1,060 | 1.91 | 28.10 | 36.62 |
Help/Feedback /wp-admin/admin.php?page=pg-360-generator/admin/partials/pg360_help.php | 846 | 2.01 | 24.12 | 28.66 |
360° Gallery /wp-admin/admin.php?page=pg-360-generator/admin/partials/pg360_gallery.php | 935 | 2.36 | 35.73 | 27.95 |
Add 360° /wp-admin/admin.php?page=pg-360-generator/admin/partials/pg360_new.php | 819 | 1.85 | 32.80 | 23.31 |
Uninstaller [IO: ✅] [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
Please fix the following items
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_pg360_project_details
- wp_pg360_images_details
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/pg-360-generator/public/partials/pg360-public-display.php
- > /wp-content/plugins/pg-360-generator/admin/partials/pg360_help.php
- > /wp-content/plugins/pg-360-generator/admin/partials/pg360-admin-display.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/pg-360-generator/admin/partials/pg360_new.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/pg-360-generator/admin/partials/pg360_setting.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pg-360-generator/admin/partials/pg360_gallery.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=pg-360-generator/admin/partials/pg360_new.php
- > Javascript (severe) in unknown
/wp-content/plugins/pg-360-generator/admin/js/dropzone.min.js?ver=1.1.0 0:1962 Uncaught Error: No URL provided.
- > GET request to /wp-admin/admin.php?page=pg-360-generator/admin/partials/pg360_new.php
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught Error: Dropzone already attached.
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% 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
These attributes need to be fixed:
- Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
pg-360-generator/pg360.php 77% from 13 tests
The main PHP script in "360 Generator" version 2.0.1 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 211 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pg-360-generator.php" instead of "pg360.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin5,241 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 684 | 204 | 2,799 |
PHP | 20 | 523 | 849 | 1,979 |
JavaScript | 10 | 108 | 256 | 463 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 2 | 2.44% |
▷ Public methods | 77 | 93.90% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 6.10% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/PG20.png | 0.41KB | 0.33KB | ▼ 17.75% |