Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼4.00ms] Passed 4 tests
This is a short check of server-side resources used by Reorder Posts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 42.76 ▲4.82 |
Dashboard /wp-admin | 3.67 ▲0.33 | 50.72 ▼7.01 |
Posts /wp-admin/edit.php | 3.78 ▲0.43 | 43.73 ▼1.39 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.37 | 81.11 ▼11.05 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 36.95 ▲3.44 |
Reorder /wp-admin/edit.php?post_type=wp_template&page=reorder-wp_template | 3.58 | 33.02 |
Reorder /wp-admin/edit.php?post_type=wp_block&page=reorder-wp_block | 3.58 | 32.34 |
Reorder /wp-admin/edit.php?post_type=page&page=reorder-page | 3.59 | 34.52 |
Reorder /wp-admin/edit.php?post_type=wp_template_part&page=reorder-wp_template_part | 3.58 | 31.58 |
Reorder /wp-admin/edit.php?page=reorder-posts | 3.60 | 35.47 |
Reorder /wp-admin/edit.php?post_type=nav_menu_item&page=reorder-nav_menu_item | 3.58 | 33.92 |
Reorder /wp-admin/edit.php?post_type=oembed_cache&page=reorder-oembed_cache | 3.58 | 32.64 |
Reorder /wp-admin/edit.php?post_type=custom_css&page=reorder-custom_css | 3.58 | 33.67 |
Reorder /wp-admin/edit.php?post_type=attachment&page=reorder-attachment | 3.58 | 32.66 |
Reorder /wp-admin/edit.php?post_type=wp_global_styles&page=reorder-wp_global_styles | 3.58 | 32.48 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
metronet-reorder-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Reorder Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲55 | 14.73 ▲0.55 | 1.73 ▲0.07 | 47.63 ▲7.86 |
Dashboard /wp-admin | 2,210 ▲29 | 5.64 ▼0.07 | 90.98 ▼8.97 | 41.76 ▲2.74 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.99 ▼0.02 | 33.74 ▼3.09 | 39.74 ▲5.80 |
Add New Post /wp-admin/post-new.php | 1,535 ▲4 | 23.03 ▼0.40 | 660.91 ▲12.39 | 52.76 ▼5.72 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.20 ▼0.02 | 96.90 ▲0.16 | 43.74 ▲0.35 |
Reorder /wp-admin/edit.php?post_type=wp_template&page=reorder-wp_template | 872 | 1.84 | 27.50 | 28.17 |
Reorder /wp-admin/edit.php?post_type=wp_block&page=reorder-wp_block | 878 | 1.85 | 24.77 | 25.52 |
Reorder /wp-admin/edit.php?post_type=page&page=reorder-page | 896 | 2.04 | 33.16 | 33.05 |
Reorder /wp-admin/edit.php?post_type=wp_template_part&page=reorder-wp_template_part | 872 | 1.81 | 25.01 | 25.60 |
Reorder /wp-admin/edit.php?page=reorder-posts | 890 | 2.03 | 30.38 | 30.93 |
Reorder /wp-admin/edit.php?post_type=nav_menu_item&page=reorder-nav_menu_item | 872 | 1.83 | 26.61 | 29.98 |
Reorder /wp-admin/edit.php?post_type=oembed_cache&page=reorder-oembed_cache | 872 | 1.84 | 24.98 | 28.35 |
Reorder /wp-admin/edit.php?post_type=custom_css&page=reorder-custom_css | 875 | 1.87 | 26.77 | 28.68 |
Reorder /wp-admin/edit.php?post_type=attachment&page=reorder-attachment | 872 | 1.90 | 24.25 | 29.54 |
Reorder /wp-admin/edit.php?post_type=wp_global_styles&page=reorder-wp_global_styles | 875 | 1.82 | 27.22 | 27.28 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/metronet-reorder-posts/index.php
- 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/metronet-reorder-posts/class-reorder-admin.php:449
- > 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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: reorder posts, reorder
metronet-reorder-posts/index.php 92% from 13 tests
The main file in "Reorder Posts" v. 2.5.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("metronet-reorder-posts.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,707 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 190 | 143 | 913 |
PHP | 4 | 131 | 456 | 624 |
CSS | 1 | 2 | 0 | 90 |
PO File | 1 | 24 | 24 | 80 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 61.50 |
▷ Minimum class complexity | 56.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 5.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 29 | |
▷ Static methods | 1 | 3.45% |
▷ Public methods | 27 | 93.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.90% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin