Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/sayitright-embed/admin/class-sayitright-embed-admin.php+49
Use of undefined constant RIDWPAISWP30 - assumed 'RIDWPAISWP30' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.84MB] [CPU: ▼46.35ms] Passed 4 tests
This is a short check of server-side resources used by SayitRight Embed
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.19 ▲3.37 |
Dashboard /wp-admin | 2.10 ▼1.20 | 14.82 ▼33.76 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.35 ▼40.89 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.74 ▼84.35 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.07 ▼26.38 |
Server storage [IO: ▲1.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by SayitRight Embed
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲83 | 14.81 ▲0.14 | 2.61 ▲0.76 | 46.87 ▲3.02 |
Dashboard /wp-admin | 2,206 ▲15 | 4.88 ▼1.18 | 109.37 ▼5.68 | 39.11 ▼8.13 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.01 | 37.89 ▼0.66 | 33.08 ▼6.03 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 23.20 ▼0.09 | 648.18 ▲9.70 | 67.25 ▲4.94 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.20 ▼0.02 | 94.91 ▼5.11 | 40.87 ▼2.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/sayitright-embed/admin/class-sayitright-embed-admin.php+49
Use of undefined constant RIDWPAISWP30 - assumed 'RIDWPAISWP30' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The shortcode dropdown), #2 (The shortcodes being used)
sayitright-embed/sayitright-embed.php Passed 13 tests
The main PHP file in "SayitRight Embed" ver. 0.0.2 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
A plugin to embed stations, channels and programs from the SayitRight network.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected12,141 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 120 | 91 | 9,268 |
JavaScript | 7 | 330 | 251 | 1,959 |
SVG | 2 | 0 | 0 | 749 |
PHP | 5 | 37 | 171 | 165 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
3 PNG files occupy 0.10MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/js/sayitright-embed.png | 2.83KB | 0.13KB | ▼ 95.23% |
assets/img/sir-embed-shortcode-dropdown.png | 54.75KB | 18.36KB | ▼ 66.47% |
assets/img/sir-embed-shortcode.png | 48.80KB | 15.62KB | ▼ 68.00% |