Benchmarks
Plugin footprint Passed 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.08MB] [CPU: ▼154.47ms] Passed 4 tests
An overview of server-side resources used by DW Shortlinks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 33.81 ▲6.96 |
Dashboard /wp-admin | 3.14 ▲0.08 | 47.80 ▲1.25 |
Posts /wp-admin/edit.php | 3.18 ▲0.08 | 47.45 ▼0.57 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.06 | 96.25 ▼619.51 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 38.99 ▲0.97 |
Shortlinks /wp-admin/edit.php?post_type=dw-shortlink | 3.12 | 39.22 |
Type /wp-admin/edit-tags.php?taxonomy=dw-shortlink_type&post_type=dw-shortlink | 3.08 | 38.47 |
Add New /wp-admin/post-new.php?post_type=dw-shortlink | 3.13 | 53.35 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for DW Shortlinks
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,739 ▲143 | 15.85 ▼0.13 | 10.20 ▲1.06 | 48.80 ▼6.28 |
Dashboard /wp-admin | 3,010 ▲79 | 5.94 ▲0.00 | 156.61 ▲2.01 | 117.72 ▼9.25 |
Posts /wp-admin/edit.php | 2,775 ▲36 | 2.69 ▲0.01 | 69.99 ▲1.74 | 99.55 ▼0.54 |
Add New Post /wp-admin/post-new.php | 1,523 ▼160 | 18.57 ▼0.20 | 385.31 ▼13.29 | 112.45 ▲0.76 |
Media Library /wp-admin/upload.php | 1,843 ▲33 | 5.04 ▲0.02 | 168.83 ▲3.26 | 119.20 ▼13.17 |
Shortlinks /wp-admin/edit.php?post_type=dw-shortlink | 1,436 | 2.62 | 66.68 | 80.87 |
Type /wp-admin/edit-tags.php?taxonomy=dw-shortlink_type&post_type=dw-shortlink | 1,772 | 2.50 | 64.13 | 83.78 |
Add New /wp-admin/post-new.php?post_type=dw-shortlink | 2,138 | 3.32 | 113.11 | 85.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dw-shortlinks/dw-shortlinks.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (36 tag instead of maximum 10)
dw-shortlinks/dw-shortlinks.php 92% from 13 tests
Analyzing the main PHP file in "DW Shortlinks" version 1.0.0
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected245 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 37 | 10 | 245 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
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 | 15 | |
▷ Named functions | 15 | 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
There were not PNG files found in your plugin