Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.17ms] Passed 4 tests
Server-side resources used by Shorte.st Monetization
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.27 ▲0.19 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.92 ▼0.95 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.80 ▲4.84 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.00 ▼10.61 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.41 ▼1.29 |
Monetize your website /wp-admin/options-general.php?page=shortest-website-monetization | 3.31 | 34.57 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 26 new options
New WordPress options |
---|
shst_token |
widget_recent-posts |
shst_es_type |
shst_fps_capping_limit |
shst_pop_enabled |
shst_exs_enabled |
shst_fps_capping_enabled |
shst_fps_selection_type |
shst_op_default_set |
shst_email_changed |
... |
Browser metrics Passed 4 tests
Shorte.st Monetization: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲115 | 13.48 ▼0.88 | 7.74 ▲6.05 | 40.37 ▼2.81 |
Dashboard /wp-admin | 2,199 ▲22 | 5.52 ▼0.06 | 88.33 ▼4.46 | 40.75 ▼1.82 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 1.99 ▼0.01 | 38.93 ▲2.62 | 36.37 ▲2.45 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.96 ▼0.01 | 708.47 ▲17.29 | 58.53 ▲1.95 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▼0.02 | 107.59 ▼1.68 | 47.72 ▲0.84 |
Monetize your website /wp-admin/options-general.php?page=shortest-website-monetization | 1,117 | 2.02 | 28.76 | 69.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- shst_api_ready
- widget_recent-comments
- theysaidso_admin_options
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 everything seems fine, this is not an exhaustive test
SRP 50% 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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Shortest_Monetization' not found in wp-content/plugins/shortest-website-monetization/views/admin.php:3
- > PHP Fatal error
Uncaught Error: Class 'Shortest_Monetization' not found in wp-content/plugins/shortest-website-monetization/views/public.php:17
- > 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 errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: monetization, traffic
shortest-website-monetization/shortest-website-monetization.php 92% from 13 tests
Analyzing the main PHP file in "Shorte.st Monetization" version 1.2.0
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin922 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 117 | 295 | 510 |
CSS | 2 | 39 | 3 | 289 |
JavaScript | 2 | 17 | 1 | 67 |
SVG | 1 | 0 | 1 | 56 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 25 | |
▷ Static methods | 11 | 44.00% |
▷ Public methods | 19 | 76.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 24.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.09MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/slider.png | 0.96KB | 0.10KB | ▼ 89.64% |
assets/slider_right.png | 0.91KB | 0.08KB | ▼ 91.00% |
assets/ninjahead.png | 2.20KB | 1.25KB | ▼ 42.98% |
assets/switch-round.png | 1.73KB | 0.63KB | ▼ 63.81% |
assets/off.png | 0.98KB | 0.10KB | ▼ 90.07% |