Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.35ms] Passed 4 tests
Server-side resources used by GD Pages Navigator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.74 ▼2.87 |
Dashboard /wp-admin | 3.39 ▲0.05 | 49.76 ▼10.85 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 49.52 ▼0.80 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 92.18 ▼16.90 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.60 ▼2.77 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_d4p_pages_navigator |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
GD Pages Navigator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.61 ▲0.23 | 1.88 ▼0.15 | 43.06 ▼3.17 |
Dashboard /wp-admin | 2,192 ▲15 | 5.62 ▲0.02 | 88.40 ▼0.79 | 42.31 ▲1.54 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.01 | 33.15 ▼10.48 | 33.12 ▼4.52 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.49 ▲0.40 | 651.77 ▼4.58 | 62.47 ▲3.63 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.27 ▲0.10 | 98.96 ▼3.61 | 46.92 ▲1.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_d4p_pages_navigator
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
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)
Good news, no errors were detected
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
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gd-pages-navigator/gdr2/gdr2.core.php:50
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/gd-pages-navigator/widget/form.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gd-pages-navigator/gdr2/gdr2.widget.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gd-pages-navigator/gdr2/gdr2.core.php:50
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: navigation, dev4press, custom post types, hierarchy, pages...
gd-pages-navigator/gd-pages-navigator.php 92% from 13 tests
The entry point to "GD Pages Navigator" version 6.2.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 155 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,231 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 481 | 1,025 | 2,154 |
CSS | 2 | 13 | 0 | 65 |
JavaScript | 2 | 2 | 1 | 12 |
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.49 |
Average class complexity | 19.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 26 | 27.08% |
▷ Public methods | 87 | 90.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 9.38% |
Functions | 72 | |
▷ Named functions | 72 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin