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.16MB] [CPU: ▼0.74ms] Passed 4 tests
Server-side resources used by RankingMan
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.16 | 45.13 ▲3.45 |
Dashboard /wp-admin | 3.46 ▲0.16 | 49.38 ▼1.29 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 47.93 ▼2.31 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 97.52 ▼2.82 |
Media Library /wp-admin/upload.php | 3.38 ▲0.16 | 37.33 ▲3.53 |
ランキングタグ /wp-admin/edit-tags.php?taxonomy=ranking_tag&post_type=wp_rman | 3.38 | 33.54 |
ランキングカテゴリー /wp-admin/edit-tags.php?taxonomy=ranking_category&post_type=wp_rman | 3.38 | 47.23 |
Add New /wp-admin/post-new.php?post_type=wp_rman | 3.51 | 55.10 |
RankingMan /wp-admin/options-general.php?page=wp_rman_setup_page | 3.33 | 36.39 |
ランキング /wp-admin/edit.php?post_type=wp_rman | 3.42 | 37.90 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
wp_rman_user_setting |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by RankingMan
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲113 | 14.43 ▼0.15 | 1.82 ▼0.03 | 41.39 ▲1.22 |
Dashboard /wp-admin | 2,248 ▲57 | 5.90 ▲0.00 | 106.82 ▲6.11 | 50.09 ▲6.33 |
Posts /wp-admin/edit.php | 2,128 ▲42 | 2.02 ▲0.01 | 35.47 ▲0.61 | 38.70 ▲8.36 |
Add New Post /wp-admin/post-new.php | 1,572 ▲38 | 23.14 ▼0.22 | 579.53 ▼89.27 | 51.45 ▼4.63 |
Media Library /wp-admin/upload.php | 1,424 ▲33 | 4.24 ▲0.02 | 92.39 ▼3.61 | 45.41 ▼3.66 |
ランキングタグ /wp-admin/edit-tags.php?taxonomy=ranking_tag&post_type=wp_rman | 1,270 | 2.14 | 26.77 | 39.50 |
ランキングカテゴリー /wp-admin/edit-tags.php?taxonomy=ranking_category&post_type=wp_rman | 1,305 | 2.14 | 28.60 | 39.37 |
Add New /wp-admin/post-new.php?post_type=wp_rman | 2,693 | 7.75 | 191.37 | 94.30 |
RankingMan /wp-admin/options-general.php?page=wp_rman_setup_page | 1,179 | 2.05 | 22.51 | 93.51 |
ランキング /wp-admin/edit.php?post_type=wp_rman | 1,100 | 1.95 | 30.98 | 44.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- wp_rman_user_setting
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rankingman/includes/functions-custom-post.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/rankingman/ranking_man.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rankingman/includes/functions-shortcode.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rankingman/includes/functions-custom-param.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rankingman/includes/functions-plugin-settings.php:7
- > 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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please describe screenshot #2 in rankingman/assets to your readme.txt
rankingman/ranking_man.php 92% from 13 tests
The principal PHP file in "RankingMan" v. 1.0.3 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("rankingman.php" instead of "ranking_man.php")
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
Success! There were no dangerous files found in this plugin1,410 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 58 | 26 | 743 |
PHP | 5 | 134 | 34 | 667 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
30 PNG files occupy 0.21MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/type8_rank2.png | 5.10KB | 2.91KB | ▼ 42.87% |
images/type10_rank3.png | 3.16KB | 1.75KB | ▼ 44.66% |
images/type9_rank2.png | 9.10KB | 4.12KB | ▼ 54.74% |
images/type2_rank1.png | 4.93KB | 4.83KB | ▼ 2.06% |
images/type6_rank3.png | 3.37KB | 2.46KB | ▼ 26.94% |