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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.86ms] Passed 4 tests
An overview of server-side resources used by WeSnipp Embed
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.75 ▼1.80 |
Dashboard /wp-admin | 3.33 ▲0.02 | 48.52 ▲1.17 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 52.81 ▲1.93 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.60 ▼7.97 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.72 ▲1.18 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WeSnipp Embed
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲31 | 14.17 ▼0.41 | 1.97 ▲0.31 | 44.13 ▲1.56 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▼0.04 | 90.30 ▼1.42 | 39.52 ▼2.96 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.95 ▼0.06 | 41.44 ▲0.33 | 36.14 ▼3.30 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.06 ▼0.02 | 680.19 ▲67.58 | 48.54 ▲1.54 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.20 ▲0.07 | 100.18 ▼7.15 | 43.34 ▲1.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wesnipp-embed/tinymce/wesnipp-popup-form.php
- > /wp-content/plugins/wesnipp-embed/includes/wesnipp_shortcode.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wesnipp-embed/wesnipp-embed.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wesnipp-embed/includes/cpe_i18n_init.php:3
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wesnipp-embed/wesnipp-embed.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (A WeSnipp Snippet), #2 (Add a snippet button)
wesnipp-embed/wesnipp-embed.php Passed 13 tests
This is the main PHP file of "WeSnipp Embed" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
52 characters long description:
Easily Include WeSnipp Embeds on your WordPress Blog
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected308 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 6 | 153 | 142 |
CSS | 1 | 0 | 0 | 87 |
PO File | 1 | 16 | 16 | 48 |
JavaScript | 1 | 0 | 2 | 31 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.18MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tinymce/images/wesnipp.png | 1.82KB | 1.03KB | ▼ 43.52% |
screenshot-1.png | 173.17KB | 51.11KB | ▼ 70.49% |
tinymce/images/logo-green-150.png | 5.17KB | 3.27KB | ▼ 36.72% |
screenshot-2.png | 7.67KB | 2.17KB | ▼ 71.65% |