Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼4.79ms] Passed 4 tests
Analyzing server-side resources used by NPS computy
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.59 ▼3.67 |
Dashboard /wp-admin | 3.48 ▲0.18 | 47.79 ▲1.96 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 50.31 ▼0.16 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 84.43 ▼17.27 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 38.43 ▲5.58 |
NPS Monitoring /wp-admin/options-general.php?page=nps-plugin-options | 3.37 | 33.67 |
Server storage [IO: ▲1.80MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 79 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_nps_computy |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
npsc_db_version |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for NPS computy
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲184 | 13.86 ▼0.51 | 6.25 ▲4.05 | 44.77 ▲1.17 |
Dashboard /wp-admin | 2,214 ▲23 | 5.13 ▼0.76 | 98.26 ▼2.48 | 40.13 ▼4.54 |
Posts /wp-admin/edit.php | 2,100 ▲8 | 2.48 ▲0.46 | 38.35 ▼2.31 | 35.88 ▲0.36 |
Add New Post /wp-admin/post-new.php | 1,528 ▼8 | 23.41 ▲0.21 | 670.02 ▲83.94 | 56.64 ▲3.85 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.48 ▲0.38 | 97.72 ▲0.79 | 40.37 ▼6.94 |
NPS Monitoring /wp-admin/options-general.php?page=nps-plugin-options | 1,113 | 1.84 | 25.60 | 30.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_nps_computy
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: score, promoter, statistic, nps, net...
nps-computy/index.php 85% from 13 tests
This is the main PHP file of "NPS computy" version 2.7.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 169 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nps-computy.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected22,810 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 37 | 3,376 | 9,076 | 15,292 |
CSS | 25 | 801 | 117 | 6,558 |
PHP | 2 | 188 | 44 | 821 |
PO File | 1 | 47 | 49 | 119 |
SVG | 2 | 0 | 1 | 20 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 81.00 |
▷ Minimum class complexity | 81.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 23 | 92.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
_inc/datatables/DataTables-1.10.21/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
img/speed.png | 13.07KB | 13.60KB | 0.00% |
_inc/datatables/DataTables-1.10.21/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
_inc/datatables/DataTables-1.10.21/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
_inc/datatables/DataTables-1.10.21/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |