Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.63MB] [CPU: ▲7.39ms] Passed 4 tests
An overview of server-side resources used by Naveed Post Types
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 53.91 ▲8.47 |
Dashboard /wp-admin | 4.12 ▲0.81 | 65.36 ▲11.57 |
Posts /wp-admin/edit.php | 4.15 ▲0.79 | 64.66 ▲15.65 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.76 | 98.92 ▼6.12 |
Media Library /wp-admin/upload.php | 3.98 ▲0.75 | 53.17 ▲17.05 |
Taxonomies /wp-admin/edit.php?post_type=npt-taxonomy | 4.07 | 49.17 |
Post Types /wp-admin/edit.php?post_type=npt-post-type | 4.07 | 51.65 |
Register New /wp-admin/admin.php?page=naveed-post-types | 3.95 | 48.68 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 88 new files
Database: no new tables, 8 new options
New WordPress options |
---|
npt_post_type_count |
widget_theysaidso_widget |
widget_recent-posts |
npt_taxonomy_count |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Naveed Post Types
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲79 | 14.42 ▼0.23 | 1.72 ▼0.38 | 44.10 ▼2.39 |
Dashboard /wp-admin | 2,228 ▲51 | 5.56 ▼0.05 | 98.37 ▲4.52 | 71.88 ▲29.53 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.01 ▼0.01 | 35.31 ▼3.25 | 36.70 ▲0.12 |
Add New Post /wp-admin/post-new.php | 1,567 ▲39 | 22.97 ▼0.16 | 776.65 ▲85.38 | 53.21 ▲2.75 |
Media Library /wp-admin/upload.php | 1,448 ▲48 | 4.17 ▼0.03 | 95.55 ▼12.16 | 74.35 ▲26.35 |
Taxonomies /wp-admin/edit.php?post_type=npt-taxonomy | 1,255 | 2.12 | 35.26 | 35.55 |
Post Types /wp-admin/edit.php?post_type=npt-post-type | 1,283 | 2.11 | 33.70 | 36.51 |
Register New /wp-admin/admin.php?page=naveed-post-types | 965 | 1.79 | 25.13 | 33.60 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-comments
- npt_taxonomy_count
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- npt_post_type_count
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/naveed-post-types/includes/ajax.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/naveed-post-types/includes/npt-functions.php:611
- > 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 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6 in naveed-post-types/assets to your readme.txt
naveed-post-types/npt.php 85% from 13 tests
"Naveed Post Types" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 ("naveed-post-types.php" instead of "npt.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
No dangerous file extensions were detected6,149 lines of code in 87 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 353 | 759 | 4,497 |
SVG | 72 | 0 | 72 | 1,051 |
CSS | 1 | 15 | 1 | 482 |
JavaScript | 1 | 4 | 3 | 119 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 27.70 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 4.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 1 | 1.43% |
▷ Public methods | 70 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
There are no PNG files in this plugin