Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.26MB] [CPU: ▼309.10ms] Passed 4 tests
A check of server-side resources used by WP Intelligist
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.08 ▼0.43 | 18.82 ▼32.90 |
Dashboard /wp-admin | 3.29 ▼0.12 | 27.47 ▼5.59 |
Posts /wp-admin/edit.php | 3.24 ▼0.40 | 22.06 ▼15.47 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 92.96 ▼1,182.43 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 22.89 ▼0.37 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WP Intelligist
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 15.80 ▼0.14 | 6.01 ▼0.32 | 1.96 ▼0.64 |
Dashboard /wp-admin | 2,888 ▲27 | 6.13 ▼0.16 | 115.64 ▼16.12 | 154.45 ▼9.95 |
Posts /wp-admin/edit.php | 2,691 ▲3 | 3.24 ▲0.00 | 63.32 ▼2.70 | 138.98 ▼6.74 |
Add New Post /wp-admin/post-new.php | 1,661 ▲1 | 16.76 ▼4.44 | 394.35 ▼20.61 | 153.90 ▼3.40 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.54 ▲0.03 | 135.69 ▲0.31 | 188.27 ▲2.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-intelligist/git_form.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-intelligist/wp-intelligist.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png), #2 (screenshot-2.png)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wp-intelligist ===
)
wp-intelligist/wp-intelligist.php Passed 13 tests
The main PHP file in "WP Intelligist" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
99 characters long description:
Embed codes from github directly into your blog posts or pages using jquery-intelligist and chosen.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin754 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 26 | 20 | 438 |
PHP | 2 | 52 | 31 | 122 |
JavaScript | 4 | 39 | 48 | 113 |
Markdown | 3 | 45 | 0 | 81 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 16.19KB | 8.47KB | ▼ 47.67% |
chosen/chosen-sprite.png | 0.55KB | 0.70KB | 0.00% |
screenshot-1.png | 61.93KB | 26.88KB | ▼ 56.60% |