Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲1.55MB] [CPU: ▲4.45ms] 75% from 4 tests
An overview of server-side resources used by Preview Link Generator
The following require your attention
- CPU: You should keep total CPU usage under 500.00ms (currently 1,422.54ms on /wp-admin/edit.php?post_type=htpl-link&page=previewlink-recommendations)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.01 ▲1.54 | 53.92 ▲6.82 |
Dashboard /wp-admin | 4.86 ▲1.55 | 56.05 ▲5.17 |
Posts /wp-admin/edit.php | 4.91 ▲1.55 | 54.03 ▲7.48 |
Add New Post /wp-admin/post-new.php | 7.45 ▲1.56 | 100.45 ▼1.67 |
Media Library /wp-admin/upload.php | 4.79 ▲1.55 | 48.41 ▲16.22 |
Generate New Link /wp-admin/post-new.php?post_type=htpl-link | 4.93 | 62.75 |
Categories /wp-admin/edit-tags.php?taxonomy=htpl_link_cat&post_type=htpl-link | 4.90 | 44.13 |
All Links /wp-admin/edit.php?post_type=htpl-link | 4.86 | 48.43 |
Recommendations /wp-admin/edit.php?post_type=htpl-link&page=previewlink-recommendations | 9.19 | 1,422.54 |
Settings /wp-admin/edit.php?post_type=htpl-link&page=htpl-admin | 4.79 | 44.54 |
Server storage [IO: ▲2.23MB] [DB: ▲0.67MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 178 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
htpl_options |
Browser metrics Passed 4 tests
Checking browser requirements for Preview Link Generator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲79 | 14.24 ▼0.15 | 1.89 ▲0.14 | 42.91 ▲0.63 |
Dashboard /wp-admin | 2,246 ▲69 | 5.60 ▼0.05 | 82.50 ▼1.61 | 36.34 ▼3.64 |
Posts /wp-admin/edit.php | 2,156 ▲56 | 2.05 ▲0.04 | 36.77 ▲2.68 | 33.05 ▼5.73 |
Add New Post /wp-admin/post-new.php | 1,563 ▲35 | 23.40 ▲0.22 | 600.61 ▼74.38 | 52.94 ▼2.07 |
Media Library /wp-admin/upload.php | 1,456 ▲53 | 4.27 ▲0.08 | 95.81 ▲2.93 | 42.92 ▼1.17 |
Generate New Link /wp-admin/post-new.php?post_type=htpl-link | 1,876 | 4.36 | 70.77 | 34.29 |
Categories /wp-admin/edit-tags.php?taxonomy=htpl_link_cat&post_type=htpl-link | 1,330 | 2.29 | 25.88 | 30.36 |
All Links /wp-admin/edit.php?post_type=htpl-link | 1,320 | 3.44 | 49.99 | 28.93 |
Recommendations /wp-admin/edit.php?post_type=htpl-link&page=previewlink-recommendations | 3,039 | 3.56 | 46.97 | 103.69 |
Settings /wp-admin/edit.php?post_type=htpl-link&page=htpl-admin | 1,174 | 3.63 | 51.70 | 63.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.67MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- htpl_options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% 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 no errors were found, this is by no means 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
Please fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/preview-link-generator/templates/single-htpl-link.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function HtplGenerator\\add_action() in wp-content/plugins/preview-link-generator/includes/Custom_Posts.php:15
- > PHP Fatal error
Uncaught Error: Class 'PreviewLink\\Admin\\Recommended_Plugins' not found in wp-content/plugins/preview-link-generator/includes/Admin/class.recommendation-plugin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function HtplGenerator\\add_action() in wp-content/plugins/preview-link-generator/includes/Taxonomies.php:13
- > 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 93% from 29 tests
readme.txt Passed 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
5 plugin tags: link generator, themeforest, demo, envato, preview
preview-link-generator/preview_link_generator.php 85% from 13 tests
Analyzing the main PHP file in "Preview Link Generator" version 1.0.6
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("preview-link-generator.php" instead of "preview_link_generator.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
There were no executable files found in this plugin27,902 lines of code in 135 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 86 | 2,763 | 1,185 | 8,749 |
PO File | 20 | 3,037 | 3,414 | 6,180 |
Sass | 15 | 952 | 3 | 4,811 |
JavaScript | 7 | 1,280 | 382 | 4,101 |
CSS | 5 | 280 | 485 | 4,059 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 23.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 6.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 69 | |
▷ Abstract classes | 2 | 2.90% |
▷ Concrete classes | 67 | 97.10% |
▷ Final classes | 1 | 1.49% |
Methods | 284 | |
▷ Static methods | 44 | 15.49% |
▷ Public methods | 281 | 98.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 1.06% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
17 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/extensions/just-tables-pro.png | 1.02KB | 1.05KB | 0.00% |
(invalid) assets/images/extensions/wp-plugin-manager-pro.png | 13.31KB | 0.00KB | ▼ 100.00% |
(invalid) assets/images/extensions/docus-pro.png | 3.98KB | 0.00KB | ▼ 100.00% |
(invalid) assets/images/extensions/ht-menu.png | 2.85KB | 0.00KB | ▼ 100.00% |
libs/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |