Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.55ms] Passed 4 tests
An overview of server-side resources used by Page Metrics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.57 ▼3.77 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.59 ▼3.86 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 46.50 ▲1.45 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 81.14 ▼11.77 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 33.30 ▲1.20 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 17 new options
New WordPress options |
---|
widget_recent-posts |
slwsu_page_metrics_activation |
can_compress_scripts |
slwsu_page_metrics_firstPaint |
theysaidso_admin_options |
slwsu_page_metrics_domInteractive |
widget_theysaidso_widget |
slwsu_page_metrics_fps |
db_upgraded |
slwsu_page_metrics_warnThreshold |
... |
Browser metrics Passed 4 tests
Page Metrics: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 13.55 ▼0.80 | 1.68 ▼0.12 | 38.83 ▼4.75 |
Dashboard /wp-admin | 2,224 ▲36 | 5.88 ▲0.00 | 102.75 ▼10.15 | 37.90 ▼8.80 |
Posts /wp-admin/edit.php | 2,110 ▲24 | 1.99 ▲0.00 | 37.54 ▲2.93 | 32.84 ▼5.70 |
Add New Post /wp-admin/post-new.php | 1,529 ▲6 | 17.65 ▼5.60 | 654.84 ▼12.50 | 54.99 ▲0.40 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.22 ▲0.01 | 96.40 ▼12.45 | 42.21 ▼3.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
No output text or server-side errors detected on direct access of PHP files
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: justice js, analysis page web, metrics js, performance metrics, analysis metrics...
page-metrics/page-metrics.php 92% from 13 tests
"Page Metrics" version 1.5.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- 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 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin988 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 113 | 187 | 600 |
JavaScript | 2 | 29 | 0 | 238 |
PO File | 1 | 51 | 52 | 150 |
PHP code Passed 2 tests
An overview 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.19 |
Average class complexity | 5.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 12 | 25.00% |
▷ Public methods | 45 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.25% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin