Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▲0.84ms] Passed 4 tests
This is a short check of server-side resources used by NS Featured Posts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 44.04 ▲0.53 |
Dashboard /wp-admin | 3.48 ▲0.18 | 52.92 ▼1.55 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 53.96 ▲3.29 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 99.61 ▲2.80 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 39.00 ▲1.57 |
NS Featured Posts /wp-admin/options-general.php?page=ns-featured-posts | 3.31 | 39.06 |
Server storage [IO: ▲0.24MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_nsfp-featured-post-widget |
nsfp_option_migration_complete |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
nsfp_plugin_options |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for NS Featured Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,993 ▲232 | 17.28 ▲3.05 | 2.00 ▲0.25 | 43.29 ▼0.41 |
Dashboard /wp-admin | 2,400 ▲196 | 8.19 ▲3.31 | 170.18 ▲61.46 | 42.19 ▼0.65 |
Posts /wp-admin/edit.php | 2,343 ▲240 | 5.33 ▲3.32 | 92.84 ▲51.82 | 34.13 ▼5.46 |
Add New Post /wp-admin/post-new.php | 1,723 ▲187 | 17.47 ▼5.79 | 607.04 ▲2.31 | 35.11 ▼13.69 |
Media Library /wp-admin/upload.php | 1,438 ▲35 | 5.55 ▲1.38 | 130.20 ▲24.03 | 45.98 ▼1.15 |
NS Featured Posts /wp-admin/options-general.php?page=ns-featured-posts | 1,205 | 5.27 | 91.80 | 29.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 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 9 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_nsfp-featured-post-widget
- nsfp_option_migration_complete
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- nsfp_plugin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ns-featured-posts/includes/widgets/nsfp-featured-post-widget.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function Nilambar\\Optioner\\add_action() in wp-content/plugins/ns-featured-posts/vendor/ernilambar/optioner/optioner.php:32
- > 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 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
10 plugin tags: posts, custom post type, meta, featured, post...
ns-featured-posts/ns-featured-posts.php Passed 13 tests
The main PHP script in "NS Featured Posts" version 2.0.10 is automatically included on every request by WordPress
63 characters long description:
Plugin to make your posts, pages and custom post types Featured
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,876 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 815 | 1,550 | 2,603 |
JSON | 3 | 0 | 0 | 149 |
JavaScript | 3 | 17 | 0 | 99 |
CSS | 2 | 4 | 0 | 23 |
Markdown | 1 | 1 | 0 | 2 |
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.43 |
Average class complexity | 39.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 163 | |
▷ Static methods | 28 | 17.18% |
▷ Public methods | 134 | 82.21% |
▷ Protected methods | 11 | 6.75% |
▷ Private methods | 18 | 11.04% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 11 | |
▷ Global constants | 8 | 72.73% |
▷ Class constants | 3 | 27.27% |
▷ Public constants | 3 | 100.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
No PNG files were detected