Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.10ms] Passed 4 tests
This is a short check of server-side resources used by Easy search and use CC-licensed images for WP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 34.89 ▼4.96 |
Dashboard /wp-admin | 3.40 ▲0.09 | 45.19 ▼7.77 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 48.74 ▲0.96 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 89.13 ▼8.00 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.05 ▲0.35 |
Easy search and use CC-licensed images for WP /wp-admin/admin.php?page=lswpccsearch-wpcc | 3.29 | 31.27 |
Server storage [IO: ▲2.80MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy search and use CC-licensed images for WP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,077 ▲331 | 13.33 ▼1.10 | 1.69 ▼0.12 | 38.81 ▼5.25 |
Dashboard /wp-admin | 2,486 ▲304 | 5.00 ▲0.02 | 109.44 ▼15.64 | 42.01 ▼13.96 |
Posts /wp-admin/edit.php | 2,613 ▲521 | 2.36 ▲0.35 | 49.64 ▲8.41 | 36.02 ▲2.64 |
Add New Post /wp-admin/post-new.php | 1,971 ▲438 | 23.59 ▲0.50 | 647.00 ▲34.73 | 33.78 ▼18.54 |
Media Library /wp-admin/upload.php | 1,912 ▲527 | 4.51 ▲0.33 | 105.51 ▲4.84 | 41.93 ▼1.83 |
Easy search and use CC-licensed images for WP /wp-admin/admin.php?page=lswpccsearch-wpcc | 1,350 | 1.97 | 36.21 | 23.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ls-wp-ccsearch/ls-wp-ccsearch-pointer.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=lswpccsearch-wpcc
- > Network (severe)
wp-content/plugins/ls-wp-ccsearch/assets/images/how-01.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=lswpccsearch-wpcc
- > Network (severe)
wp-content/plugins/ls-wp-ccsearch/assets/images/how-02.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=lswpccsearch-wpcc
- > Network (severe)
wp-content/plugins/ls-wp-ccsearch/assets/images/how-03.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Donate link: Please fix this invalid url: ""
- Screenshots: These screenshots do not have images: #1 (The "Image with CC license" button on editor), #2 (Search for an image), #3 (Preview of an image and its license.), #4 (Image settings: use of thumbnail or original image, set the image link (if any). Insert the image into the post or as featured image.), #5 (The image and it's license into the editor), #6 (The published post with the image.)
ls-wp-ccsearch/index.php 85% from 13 tests
The main file in "Easy search and use CC-licensed images for WP" v. 3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ls-wp-ccsearch.php" instead of "index.php")
- Description: Keep the plugin description shorter than 140 characters (currently 212 characters long)
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
Everything looks great! No dangerous files found in this plugin2,478 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 277 | 154 | 1,201 |
CSS | 3 | 131 | 22 | 700 |
PHP | 2 | 57 | 69 | 363 |
PO File | 1 | 44 | 50 | 128 |
Markdown | 1 | 27 | 0 | 86 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 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 | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 2.68MB with 1.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cc-search-logo-white.png | 14.71KB | 7.24KB | ▼ 50.79% |
screenshot-5.png | 679.10KB | 173.80KB | ▼ 74.41% |
screenshot-2.png | 626.03KB | 164.03KB | ▼ 73.80% |
screenshot-4.png | 536.82KB | 135.96KB | ▼ 74.67% |
assets/images/controls.png | 1.59KB | 1.67KB | 0.00% |