Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼171.25ms] Passed 4 tests
A check of server-side resources used by NN Recent Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 36.50 ▲15.58 |
Dashboard /wp-admin | 3.12 ▲0.06 | 43.51 ▼3.12 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 45.19 ▼5.18 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.04 | 88.74 ▼676.26 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 34.22 ▼0.43 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for NN Recent Posts
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,794 ▲198 | 16.25 ▲0.64 | 13.70 ▲3.89 | 50.95 ▼1.29 |
Dashboard /wp-admin | 2,977 ▲46 | 5.87 ▼0.07 | 145.70 ▼3.77 | 112.36 ▼15.23 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.71 ▼0.01 | 61.45 ▼5.01 | 84.81 ▼10.17 |
Add New Post /wp-admin/post-new.php | 1,676 ▼7 | 18.78 ▲0.04 | 379.71 ▼1.79 | 111.01 ▲3.67 |
Media Library /wp-admin/upload.php | 1,811 ▲4 | 5.02 ▲0.01 | 153.77 ▼19.14 | 123.48 ▼2.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 50% 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 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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/recent-posts-by-nn/public/partials/nn_recent_posts-public-display.php
- > /wp-content/plugins/recent-posts-by-nn/admin/partials/nn_recent_posts-admin-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/recent-posts-by-nn/inc/shortcodes.php:76
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from) image not found
recent-posts-by-nn/nn_recent_posts.php 85% from 13 tests
The primary PHP file in "NN Recent Posts" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: The principal plugin file should be the same as the plugin slug ("recent-posts-by-nn.php" instead of "nn_recent_posts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin273 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 146 | 543 | 242 |
CSS | 3 | 3 | 11 | 25 |
JavaScript | 2 | 4 | 48 | 6 |
PHP code Passed 2 tests
A brief analysis 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.10 |
Average class complexity | 1.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
No PNG images were found in this plugin