Benchmarks
Plugin footprint 65% 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.11MB] [CPU: ▼5.70ms] 75% from 4 tests
This is a short check of server-side resources used by Content Upgrade
Please have a look at the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 7,958.87ms on /wp-admin/admin.php?page=setting_page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 41.87 ▲1.92 |
Dashboard /wp-admin | 3.42 ▲0.12 | 49.63 ▼8.07 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 45.19 ▼2.58 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 85.64 ▼14.05 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 38.97 ▲3.21 |
Content Upgrade /wp-admin/admin.php?page=setting_page | 3.39 | 7,958.87 |
Download Button /wp-admin/admin.php?page=ink_dlv | 3.31 | 32.15 |
Email Customization /wp-admin/admin.php?page=customization | 3.32 | 33.24 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 51 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_dlv_subscriber |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Content Upgrade
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.72 ▲0.35 | 1.92 ▲0.20 | 41.76 ▼5.87 |
Dashboard /wp-admin | 2,220 ▲46 | 5.54 ▼0.00 | 94.27 ▲4.46 | 76.24 ▲35.66 |
Posts /wp-admin/edit.php | 2,119 ▲22 | 2.01 ▼0.03 | 33.79 ▼2.91 | 33.65 ▼0.23 |
Add New Post /wp-admin/post-new.php | 1,553 ▲22 | 23.10 ▼0.20 | 712.02 ▲63.10 | 56.45 ▲5.32 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.20 ▲0.02 | 114.75 ▲9.63 | 74.37 ▲27.56 |
Content Upgrade /wp-admin/admin.php?page=setting_page | 915 | 2.02 | 23.26 | 30.55 |
Download Button /wp-admin/admin.php?page=ink_dlv | 826 | 2.07 | 26.01 | 29.39 |
Email Customization /wp-admin/admin.php?page=customization | 885 | 2.07 | 22.65 | 27.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_dlv_subscriber
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=setting_page
- > Notice in wp-content/plugins/content-upgrade/mailget_curl.php+80
Trying to get property 'status' of non-object
- > GET request to /wp-admin/admin.php?page=setting_page
- > Warning in wp-content/plugins/content-upgrade/setting.php+113
Invalid argument supplied for foreach()
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/content-upgrade/js/dl-popup.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/content-upgrade/dlv_shortcode.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-upgrade/version1.0.0/Dlv_1Point_ZeroOne.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/content-upgrade/customize.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/content-upgrade/setting.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Screenshot of Content Upgrade Plugin.), #2 (Screenshot of Content Upgrade Plugin option.), #3 (Screenshot of Email Customization option.), #4 (Screenshot of Content Upgrade Insert Button on Post & Page.), #5 (Screenshot of Button Options.), #6 (Screenshot of Short Code of Button.), #7 (Screenshot of Download Button in Blog Post.), #8 (Screenshot of Email Options.), #9 (Screenshot of Sending Email.)
content-upgrade/dlv_shortcode.php 92% from 13 tests
"Content Upgrade" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 ("content-upgrade.php" instead of "dlv_shortcode.php")
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 detected6,997 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 1,840 | 889 | 3,902 |
PHP | 11 | 346 | 549 | 2,058 |
CSS | 4 | 136 | 23 | 1,037 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 38.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 215.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 129 | |
▷ Static methods | 12 | 9.30% |
▷ Public methods | 88 | 68.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 41 | 31.78% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
21 PNG files occupy 0.54MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/livedemo.png | 2.41KB | 1.31KB | ▼ 45.67% |
images/see_demo.png | 0.35KB | 0.53KB | 0.00% |
js/download.png | 0.76KB | 0.98KB | 0.00% |
screenshot-3.png | 59.05KB | 24.19KB | ▼ 59.04% |
images/formget.png | 7.55KB | 3.53KB | ▼ 53.27% |