Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.92ms] Passed 4 tests
An overview of server-side resources used by Giphypress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 45.59 ▲5.70 |
Dashboard /wp-admin | 3.34 ▼0.01 | 44.06 ▼19.39 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 45.07 ▼2.00 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 92.57 ▼2.12 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 33.81 ▼0.16 |
Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Giphypress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲124 | 13.43 ▼1.19 | 8.51 ▲6.85 | 42.31 ▼1.99 |
Dashboard /wp-admin | 2,200 ▲23 | 5.56 ▼0.05 | 85.52 ▼15.70 | 38.38 ▼8.21 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 2.02 ▼0.01 | 39.32 ▲2.36 | 38.05 ▲4.21 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 22.80 ▼0.28 | 676.03 ▼5.89 | 56.58 ▲4.69 |
Media Library /wp-admin/upload.php | 1,402 ▲5 | 4.17 ▲0.00 | 94.69 ▼3.65 | 40.70 ▼5.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/giphypress/iframe.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/giphypress/iframe.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #6 is missing in giphypress/assets to your readme.txt
- Donate link: Invalid url: "www.giphy.com"
giphypress/giphypress.php Passed 13 tests
The primary PHP file in "Giphypress" version 1.6.2 is used by WordPress to initiate all plugin functionality
95 characters long description:
The official GIPHY plugin allows you to embed awesome GIFs into your Wordpress posts with ease.
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
Good job! No executable or dangerous file extensions detected2,795 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 165 | 40 | 1,175 |
JavaScript | 9 | 254 | 378 | 1,114 |
HTML | 1 | 33 | 24 | 316 |
PHP | 4 | 51 | 53 | 190 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 8 | |
▷ Static methods | 2 | 25.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
24 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
html/img/icon_reactions.png | 3.48KB | 0.55KB | ▼ 84.13% |
html/img/icon_search.png | 3.56KB | 1.20KB | ▼ 66.39% |
html/img/icon_email.png | 4.09KB | 1.20KB | ▼ 70.67% |
img/giphyicon20px.png | 1.61KB | 0.69KB | ▼ 57.26% |
img/giphyiconoff20px.png | 1.15KB | 0.31KB | ▼ 73.24% |