Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼174.37ms] Passed 4 tests
Analyzing server-side resources used by Dynamic Latest Post in Nav Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 38.52 ▲9.00 |
Dashboard /wp-admin | 3.08 ▲0.03 | 50.25 ▼3.42 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 48.17 ▼0.32 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 95.21 ▼692.50 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 37.16 ▼1.22 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Dynamic Latest Post in Nav Menu
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.83 ▲0.12 | 11.27 ▲0.72 | 45.59 ▼3.28 |
Dashboard /wp-admin | 2,970 ▲36 | 5.90 ▼0.17 | 169.10 ▲7.93 | 111.35 ▼1.31 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.83 ▲0.11 | 75.61 ▲2.64 | 88.38 ▼5.60 |
Add New Post /wp-admin/post-new.php | 1,672 ▼11 | 18.94 ▲0.24 | 414.03 ▲9.13 | 111.65 ▼1.64 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▲0.01 | 162.12 ▼41.43 | 110.53 ▼13.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/dynamic-latest-post-in-nav-menu/dynamic-latest-post-in-nav-menu.php:19
- > 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 Passed 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
1 plugin tags: nav menu
dynamic-latest-post-in-nav-menu/dynamic-latest-post-in-nav-menu.php Passed 13 tests
The principal PHP file in "Dynamic Latest Post in Nav Menu" v. 1.1.1 is loaded by WordPress automatically on each request
67 characters long description:
Add Custom Post Type's Dynamic Latest Post and Archive to Nav Menu.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin175 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 15 | 140 |
Markdown | 1 | 14 | 0 | 19 |
PO File | 1 | 2 | 4 | 16 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin