Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.76ms] Passed 4 tests
Server-side resources used by WP Qiita
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.16 ▲4.12 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.42 ▼1.95 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.37 ▲0.23 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.47 ▼12.20 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.07 ▲2.89 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Qiita
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.16 ▼1.22 | 1.71 ▲0.06 | 43.14 ▲0.89 |
Dashboard /wp-admin | 2,203 ▲18 | 5.79 ▼0.11 | 98.31 ▼0.51 | 39.33 ▼3.44 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.02 ▲0.01 | 35.06 ▼6.05 | 31.94 ▼6.60 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.29 ▲0.13 | 678.67 ▲75.13 | 71.90 ▲10.46 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.22 ▲0.01 | 98.82 ▼2.53 | 43.49 ▼2.94 |
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
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-admin/includes/plugin.php+1259
Undefined variable: file
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-qiita/functions.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-qiita/lib/main.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-qiita/lib/widgets.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-qiita/lib/utils.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-qiita/wp-qiita.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-qiita/lib/shortcodes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-qiita/lib/init.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-qiita/templates/wp-qiita-options.php:4
- > 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 issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: qiita api v2, qiita
wp-qiita/wp-qiita.php 92% from 13 tests
The entry point to "WP Qiita" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 198 characters long)
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
No dangerous file extensions were detected3,379 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 447 | 623 | 2,427 |
PO File | 1 | 188 | 188 | 490 |
CSS | 1 | 36 | 26 | 228 |
JavaScript | 1 | 28 | 34 | 200 |
SVG | 1 | 0 | 0 | 34 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 68.80 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 228.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 91 | |
▷ Static methods | 2 | 2.20% |
▷ Public methods | 85 | 93.41% |
▷ Protected methods | 4 | 4.40% |
▷ Private methods | 2 | 2.20% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
9 PNG files occupy 0.27MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/qiita-access-token-2.png | 29.26KB | 12.36KB | ▼ 57.76% |
assets/images/qiita-app-register-2.png | 34.94KB | 15.76KB | ▼ 54.89% |
assets/images/wpqt-widget-view.png | 14.19KB | 8.11KB | ▼ 42.87% |
assets/images/qiita-app-register-1.png | 31.59KB | 14.35KB | ▼ 54.59% |
assets/images/qiita-app-register-3.png | 39.80KB | 13.65KB | ▼ 65.70% |