Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼12.17ms] Passed 4 tests
Analyzing server-side resources used by Ganxy Embed
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.57 ▼7.33 |
Dashboard /wp-admin | 3.44 ▲0.14 | 49.20 ▼3.05 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 47.87 ▼9.32 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 83.51 ▼28.98 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 33.45 ▼2.43 |
Ganxy Plugin Help /wp-admin/plugins.php?page=ganxy-help-page | 3.35 | 32.40 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Ganxy Embed
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲131 | 13.49 ▼0.86 | 8.79 ▲7.23 | 42.46 ▲3.48 |
Dashboard /wp-admin | 2,202 ▲25 | 5.64 ▲0.02 | 84.71 ▼1.86 | 39.76 ▼15.81 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▼0.13 | 38.17 ▼4.07 | 34.17 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.17 ▲0.18 | 650.59 ▼12.57 | 49.82 ▼15.47 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.17 ▼0.01 | 96.57 ▼12.67 | 42.00 ▼3.87 |
Ganxy Plugin Help /wp-admin/plugins.php?page=ganxy-help-page | 1,337 | 2.00 | 22.23 | 41.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ganxy-embed/inc/plugin-update.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ganxy-embed/ganxy-embed.php:46
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Visual Editor Ganxy Embed menu items.), #2 (Editor Popup options.)
ganxy-embed/ganxy-embed.php Passed 13 tests
"Ganxy Embed" version 1.4.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
73 characters long description:
Official WordPress Plugin to Embed Ganxy products by URL or Embed script.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin2,247 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 2 | 295 | 298 | 1,120 |
JavaScript | 6 | 19 | 11 | 595 |
PHP | 3 | 22 | 109 | 433 |
CSS | 3 | 2 | 2 | 66 |
SVG | 1 | 0 | 0 | 33 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 37.50 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 5.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
7 PNG files occupy 0.39MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/screen2.png | 85.35KB | 26.13KB | ▼ 69.38% |
js/img/ganxy-music.png | 19.71KB | 7.32KB | ▼ 62.88% |
js/img/ganxy-bundle.png | 20.99KB | 8.32KB | ▼ 60.38% |
img/screen1.png | 154.87KB | 47.37KB | ▼ 69.41% |
js/img/ganxy-light.png | 18.78KB | 7.68KB | ▼ 59.11% |