Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼140.92ms] Passed 4 tests
Server-side resources used by Pastebin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 33.00 ▼1.47 |
Dashboard /wp-admin | 3.06 ▲0.01 | 46.30 ▲0.85 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 47.61 ▲0.36 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 90.04 ▼563.40 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 33.21 ▲3.27 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Pastebin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,689 ▲93 | 16.16 ▲0.49 | 8.02 ▼2.99 | 49.61 ▼0.81 |
Dashboard /wp-admin | 2,970 ▲39 | 6.01 ▲0.01 | 144.36 ▼2.92 | 110.03 ▲4.65 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 70.25 ▼3.09 | 85.89 ▲1.50 |
Add New Post /wp-admin/post-new.php | 3,687 ▲2,187 | 15.11 ▼3.40 | 485.23 ▲21.51 | 110.22 ▲3.37 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.03 ▲0.01 | 165.94 ▲16.16 | 113.55 ▼1.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests Passed 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 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: shortcode, snippets, embed, bin, paste...
pastebin-embed/pastebin-embed.php Passed 13 tests
The main file in "Pastebin" v. 1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
56 characters long description:
Embed pastes from pastebin.com into your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin53 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 31 | 67 | 53 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 49.92KB | 16.62KB | ▼ 66.71% |
screenshot-1.png | 16.70KB | 6.98KB | ▼ 58.17% |