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
Install script ran successfully
Server metrics [RAM: ▲0.65MB] [CPU: ▼141.15ms] Passed 4 tests
Analyzing server-side resources used by Teleporter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.11 ▲0.28 | 33.11 ▼1.87 |
Dashboard /wp-admin | 3.89 ▲0.84 | 61.73 ▲16.04 |
Posts /wp-admin/edit.php | 3.92 ▲0.82 | 50.34 ▲6.88 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.74 | 98.10 ▼565.35 |
Media Library /wp-admin/upload.php | 3.75 ▲0.75 | 39.90 ▼4.24 |
WordQuest /wp-admin/admin.php?page=wordquest | 3.75 | 47.27 |
Teleporter /wp-admin/admin.php?page=teleporter | 3.73 | 36.50 |
Server storage [IO: ▲0.40MB] [DB: ▲0.11MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 2 new options
New WordPress options |
---|
wq_sidebar_options |
tp_sidebar_options |
Browser metrics Passed 4 tests
A check of browser resources used by Teleporter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,026 ▲430 | 14.26 ▼1.43 | 28.53 ▲15.35 | 49.69 ▼0.32 |
Dashboard /wp-admin | 3,251 ▲320 | 6.25 ▲0.16 | 145.60 ▲3.87 | 147.99 ▲35.28 |
Posts /wp-admin/edit.php | 2,812 ▲73 | 2.73 ▲0.01 | 79.31 ▲13.44 | 73.93 ▼18.80 |
Add New Post /wp-admin/post-new.php | 1,646 ▲146 | 21.49 ▲2.93 | 291.99 ▼118.55 | 106.70 ▼2.13 |
Media Library /wp-admin/upload.php | 1,801 ▼9 | 5.07 ▲0.01 | 142.36 ▼15.23 | 136.25 ▲23.05 |
WordQuest /wp-admin/admin.php?page=wordquest | 2,117 | 2.74 | 57.73 | 166.10 |
Teleporter /wp-admin/admin.php?page=teleporter | 1,649 | 3.08 | 87.69 | 142.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.11MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 2 options in the database
- tp_sidebar_options
- wq_sidebar_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function has_action() in wp-content/plugins/teleporter/wordquest.php:91
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/teleporter/loader.php:2867
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=wordquest
- > Network (severe)
wp-content/plugins/teleporter/images/rv-report.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=wordquest
- > Network (severe)
wp-content/plugins/teleporter/images/pp-donate.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=wordquest
- > Network (severe)
https://pluginreview.net/recommends/?s=yes&a=majick&c=wordquest&t=sidebar - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 96% 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
4 plugin tags: ajax page load, transition, page transition, single page application
teleporter/loader.php 92% from 13 tests
The entry point to "Teleporter" version 1.2.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("teleporter.php" instead of "loader.php")
Code Analysis 97% from 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 plugin5,470 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 966 | 1,813 | 4,288 |
JavaScript | 7 | 143 | 380 | 1,182 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 118)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 457.00 |
▷ Minimum class complexity | 457.00 |
▷ Maximum class complexity | 457.00 |
Average method complexity | 14.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 118.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 85 | |
▷ Named functions | 58 | 68.24% |
▷ Anonymous functions | 27 | 31.76% |
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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wordquest-icon.png | 1.24KB | 1.23KB | 0.40% |
images/teleporter.png | 11.33KB | 4.27KB | ▼ 62.34% |
images/wordquest.png | 7.71KB | 3.13KB | ▼ 59.40% |
images/icon.png | 1.11KB | 1.23KB | 0.00% |