Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/nw-description-for-custom-post-types/nw-description-for-custom-post-types.php+571
Non-static method NW_Description_For_Custom_Post_Types::activation_common() should not be called statically
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.64ms] Passed 4 tests
An overview of server-side resources used by NW Description For Custom Post Types
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.90 ▼5.98 |
Dashboard /wp-admin | 3.33 ▼0.02 | 51.53 ▼17.54 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.31 ▲1.46 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 98.88 ▼6.49 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.10 ▼0.56 |
ディスクリプション設定 /wp-admin/admin.php?page=nw_dfcpt_settings | 3.22 | 36.36 |
共通設定 /wp-admin/admin.php?page=nw_main_menu | 3.22 | 35.33 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
nw_common_options |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
NW Description For Custom Post Types: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.26 ▼0.15 | 1.67 ▼0.33 | 38.54 ▼5.25 |
Dashboard /wp-admin | 2,225 ▲51 | 5.65 ▼0.02 | 84.59 ▼15.21 | 43.23 ▼4.91 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.00 ▼0.05 | 40.75 ▲4.15 | 43.60 ▲4.03 |
Add New Post /wp-admin/post-new.php | 1,567 ▲22 | 23.26 ▲0.03 | 650.68 ▼38.39 | 48.82 ▼7.30 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.21 ▲0.00 | 95.25 ▼17.04 | 48.14 ▼0.40 |
ディスクリプション設定 /wp-admin/admin.php?page=nw_dfcpt_settings | 898 | 2.15 | 25.37 | 80.80 |
共通設定 /wp-admin/admin.php?page=nw_main_menu | 812 | 2.03 | 33.38 | 46.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/nw-description-for-custom-post-types/nw-description-for-custom-post-types.php+579
Non-static method NW_Description_For_Custom_Post_Types::uninstall_common() should not be called statically
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: nakweb, custom post type, meta, description, nw
nw-description-for-custom-post-types/nw-description-for-custom-post-types.php Passed 13 tests
The main PHP file in "NW Description For Custom Post Types" ver. 1.3.7 adds more information about the plugin and also serves as the entry point for this plugin
138 characters long description:
カスタム投稿タイプのアーカイブページおよびシングルページのディスクリプションを設定できます。
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
Everything looks great! No dangerous files found in this plugin762 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 90 | 153 | 568 |
CSS | 2 | 18 | 1 | 116 |
JavaScript | 2 | 6 | 24 | 78 |
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.42 |
Average class complexity | 45.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 4.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 29 | 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 | 12 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 12 | 100.00% |
▷ Public constants | 12 | 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
There are no PNG files in this plugin