Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.32ms] Passed 4 tests
Server-side resources used by BNS Inline Asides
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 38.41 ▲1.00 |
Dashboard /wp-admin | 3.35 ▲0.00 | 44.75 ▼15.23 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.90 ▼10.40 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.36 ▼0.65 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.69 ▲1.88 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
BNS Inline Asides: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲136 | 13.83 ▼0.55 | 8.29 ▲6.81 | 38.74 ▼0.79 |
Dashboard /wp-admin | 2,195 ▲18 | 5.48 ▼0.18 | 81.81 ▼14.81 | 39.63 ▲0.43 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.99 ▲0.00 | 34.79 ▼7.36 | 36.22 ▼0.94 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.11 ▼0.52 | 654.02 ▼17.68 | 57.84 ▲2.50 |
Media Library /wp-admin/upload.php | 1,394 ▼0 | 4.16 ▼0.06 | 96.16 ▲1.92 | 43.97 ▼2.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bns-inline-asides/bns-inline-asides.php:98
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: pages, content, shortcode, plugin-only, posts
bns-inline-asides/bns-inline-asides.php Passed 13 tests
"BNS Inline Asides" version 1.3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
133 characters long description:
This plugin will allow you to style sections of post content with added emphasis by leveraging a style element from the active theme.
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 detected395 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 82 | 306 | 164 |
CSS | 1 | 23 | 100 | 80 |
SVG | 1 | 0 | 1 | 77 |
PO File | 2 | 6 | 6 | 64 |
JavaScript | 1 | 1 | 31 | 10 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 1 | 16.67% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.25MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/update.png | 11.02KB | 4.81KB | ▼ 56.36% |
images/flame.png | 193.49KB | 49.06KB | ▼ 74.65% |
images/hat.png | 49.08KB | 21.87KB | ▼ 55.43% |