Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.59ms] Passed 4 tests
An overview of server-side resources used by SideOffer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.36 ▼0.92 |
Dashboard /wp-admin | 3.33 ▲0.02 | 43.72 ▼4.87 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.30 ▲0.12 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 98.38 ▲15.06 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.91 ▲3.31 |
Server storage [IO: ▲1.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 17 new options
New WordPress options |
---|
hd_sideoffer_top |
hd_sideoffer_in |
hd_sideoffer_content |
hd_sideoffer_out |
hd_sideoffer_color_text |
hd_sideoffer_title |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
hd_sideoffer_mode |
... |
Browser metrics Passed 4 tests
Checking browser requirements for SideOffer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲162 | 13.45 ▼1.02 | 8.39 ▲6.51 | 42.97 ▼3.21 |
Dashboard /wp-admin | 2,221 ▲43 | 5.71 ▲0.07 | 82.29 ▼33.34 | 72.67 ▲25.42 |
Posts /wp-admin/edit.php | 2,140 ▲43 | 2.24 ▲0.30 | 37.57 ▲1.00 | 35.74 ▲0.46 |
Add New Post /wp-admin/post-new.php | 1,711 ▲180 | 24.18 ▲1.00 | 692.41 ▼5.26 | 57.27 ▲2.39 |
Media Library /wp-admin/upload.php | 1,433 ▲36 | 4.28 ▲0.05 | 102.42 ▼17.56 | 81.20 ▲35.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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/sideoffer/sideoffer-options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sideoffer/sideoffer-options.php:3
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (SideOffer UI Side Tab (Live on HeavyDigital.net)), #2 (SideOffer Configuration Options)
- Tags: You are using too many tags: 36 tag instead of maximum 10
sideoffer/sideoffer.php 92% from 13 tests
The main PHP file in "SideOffer" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 581 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected340 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 60 | 39 | 340 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
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 | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
7 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-hd.png | 1.73KB | 0.70KB | ▼ 59.33% |
images/icon-wordpress.png | 3.59KB | 0.97KB | ▼ 73.13% |
images/icon-trac.png | 1.17KB | 0.30KB | ▼ 74.23% |
images/sideoffer-bg.png | 5.59KB | 4.15KB | ▼ 25.72% |
images/logo-heavydigital-200x75.png | 21.22KB | 7.27KB | ▼ 65.74% |