Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.84ms] Passed 4 tests
Analyzing server-side resources used by Pym.js Embeds
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.20 ▼5.09 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.36 ▼3.88 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.91 ▼0.16 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.69 ▼2.23 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 33.52 ▲0.98 |
Pym.js Embeds Settings /wp-admin/options-general.php?page=pym-embed-settings | 3.21 | 31.37 |
Pym.js Embeds Info /wp-admin/tools.php?page=pym-embeds-info | 3.21 | 31.89 |
Server storage [IO: ▲1.07MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Pym.js Embeds
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 14.81 ▲0.22 | 1.73 ▼0.21 | 41.01 ▼9.65 |
Dashboard /wp-admin | 2,217 ▲29 | 5.85 ▼0.01 | 94.07 ▼3.53 | 40.03 ▼2.86 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.02 ▲0.03 | 39.30 ▼1.42 | 33.99 ▼1.03 |
Add New Post /wp-admin/post-new.php | 6,589 ▲5,075 | 29.15 ▲11.70 | 910.31 ▲295.95 | 39.80 ▼13.61 |
Media Library /wp-admin/upload.php | 1,393 ▲8 | 4.19 ▼0.02 | 95.29 ▼3.36 | 41.41 ▼2.86 |
Pym.js Embeds Settings /wp-admin/options-general.php?page=pym-embed-settings | 819 | 2.02 | 25.22 | 28.29 |
Pym.js Embeds Info /wp-admin/tools.php?page=pym-embeds-info | 784 | 2.02 | 22.50 | 26.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function INN\\PymEmbeds\\Settings\\add_action() in wp-content/plugins/pym-shortcode/inc/settings-page.php:66
- > PHP Fatal error
Uncaught Error: Call to undefined function INN\\PymEmbeds\\AMP\\add_action() in wp-content/plugins/pym-shortcode/inc/amp.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function INN\\PymEmbeds\\Info\\add_action() in wp-content/plugins/pym-shortcode/inc/info-page.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pym-shortcode/inc/block.php:73
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pym-shortcode/inc/shortcode.php:104
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: responsive, pym, javascript, npr, iframe...
pym-shortcode/pym-shortcode.php 92% from 13 tests
The main file in "Pym.js Embeds" v. 1.3.2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected1,266 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 82 | 322 | 482 |
JavaScript | 3 | 110 | 346 | 392 |
Markdown | 7 | 186 | 0 | 367 |
CSS | 1 | 4 | 5 | 25 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 12.50% |
Functions | 25 | |
▷ Named functions | 24 | 96.00% |
▷ Anonymous functions | 1 | 4.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.95MB with 0.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
docs/img/block-in-editor.png | 619.26KB | 187.73KB | ▼ 69.69% |
docs/img/responsive-iframe-npr.png | 70.76KB | 24.91KB | ▼ 64.80% |
docs/img/pym-example-phone.png | 74.78KB | 24.79KB | ▼ 66.85% |
docs/img/pym-example-desktop.png | 59.87KB | 21.76KB | ▼ 63.65% |
docs/img/pym-shortcode-in-post.png | 88.70KB | 30.24KB | ▼ 65.90% |