Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/nw-company-profile/nw-company-profile.php+403
Non-static method NW_Company_Profile::activation_common() should not be called statically
Server metrics [RAM: ▲0.12MB] [CPU: ▼6.28ms] Passed 4 tests
An overview of server-side resources used by NW Company Profile
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 37.47 ▼14.05 |
Dashboard /wp-admin | 3.43 ▲0.12 | 43.99 ▼1.96 |
Posts /wp-admin/edit.php | 3.55 ▲0.18 | 46.90 ▲0.85 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 82.67 ▼8.93 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.20 ▼0.19 |
基本情報 /wp-admin/admin.php?page=nw_pf_settings | 3.36 | 33.34 |
共通設定 /wp-admin/admin.php?page=nw_main_menu | 3.32 | 31.61 |
Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
nw_company_profile_options |
widget_theysaidso_widget |
widget_recent-posts |
nw_company_profile_options_group |
nw_common_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for NW Company Profile
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.25 ▼0.10 | 1.74 ▼0.22 | 41.55 ▲0.86 |
Dashboard /wp-admin | 2,219 ▲45 | 5.55 ▲0.02 | 80.64 ▼10.69 | 45.90 ▲7.02 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.00 ▲0.00 | 32.59 ▼7.03 | 39.60 ▲2.71 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.59 ▲0.32 | 591.54 ▼49.63 | 54.02 ▼0.59 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.16 ▼0.06 | 93.89 ▼2.65 | 44.01 ▲3.88 |
基本情報 /wp-admin/admin.php?page=nw_pf_settings | 1,468 | 2.66 | 48.77 | 96.52 |
共通設定 /wp-admin/admin.php?page=nw_main_menu | 812 | 2.03 | 24.45 | 37.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/nw-company-profile/nw-company-profile.php+414
Non-static method NW_Company_Profile::uninstall_common() should not be called statically
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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
6 plugin tags: company, nw, profile, nakweb, basic...
nw-company-profile/nw-company-profile.php Passed 13 tests
"NW Company Profile" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
102 characters long description:
ウェブサイト内で汎用的に利用する基本情報を管理できるプラグインです。
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,797 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 137 | 263 | 835 |
Sass | 1 | 38 | 0 | 361 |
CSS | 2 | 33 | 71 | 326 |
JavaScript | 4 | 34 | 96 | 275 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 4.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 11 | 34.38% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 11 | 100.00% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin