Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼142.37ms] Passed 4 tests
Server-side resources used by NaNo Stats
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 36.70 ▲14.28 |
Dashboard /wp-admin | 3.07 ▲0.01 | 43.99 ▼3.67 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 45.50 ▲2.81 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 90.28 ▼564.76 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 31.22 ▼3.85 |
NaNo Stats /wp-admin/options-general.php?page=nanostats | 3.06 | 25.95 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options |
---|
nanostats_width |
nanostats_region |
nanostats_title |
nanostats_username |
nanostats_color_daily |
nanostats_color_goal |
nanostats_color_wordcount |
nanostats_height |
Browser metrics Passed 4 tests
NaNo Stats: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,849 ▲253 | 16.78 ▲1.19 | 15.81 ▲6.44 | 48.97 ▲2.54 |
Dashboard /wp-admin | 2,984 ▲50 | 6.51 ▲0.56 | 148.91 ▲8.37 | 110.73 ▼5.81 |
Posts /wp-admin/edit.php | 2,753 ▲14 | 3.13 ▲0.40 | 69.08 ▲2.70 | 89.78 ▲0.10 |
Add New Post /wp-admin/post-new.php | 1,515 ▼168 | 18.86 ▲0.11 | 378.74 ▲15.56 | 106.75 ▲1.60 |
Media Library /wp-admin/upload.php | 1,824 ▲17 | 5.35 ▲0.32 | 131.63 ▼19.95 | 119.30 ▲4.29 |
NaNo Stats /wp-admin/options-general.php?page=nanostats | 1,781 | 2.50 | 57.07 | 82.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/nano-stats/nanostats.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/nano-stats/admin.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=nanostats
- > Javascript (severe) in unknown
/wp-content/plugins/nano-stats/jquery.jqplot.min.js?ver=5.8.1 56:4513 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')
- > GET request to /wp-admin/options-general.php?page=nanostats
- > Javascript (severe) in unknown
/wp-content/plugins/nano-stats/jqplot.barRenderer.min.js?ver=5.8.1 56:110 Uncaught TypeError: d.jqplot.LineRenderer is not a constructor
- > GET request to /wp-admin/options-general.php?page=nanostats
- > Javascript (severe) in unknown
/wp-content/plugins/nano-stats/jqplot.categoryAxisRenderer.min.js?ver=5.8.1 56:163 Uncaught TypeError: a.jqplot.LinearAxisRenderer is not a constructor
- > GET request to /wp-admin/options-general.php?page=nanostats
- > Javascript (severe) in unknown
/wp-content/plugins/nano-stats/jqplot.highlighter.min.js?ver=5.8.1 56:41 Uncaught TypeError: Cannot read properties of undefined (reading 'push')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (With an easy shortcode, you can add this awesome stats chart to your site! Colors, size and title are customizable.), #2 (The settings page is clear and simple.)
nano-stats/nanostats.php 92% from 13 tests
This is the main PHP file of "NaNo Stats" version 1.2.11, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("nano-stats.php" instead of "nanostats.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected673 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 57 | 40 | 665 |
JavaScript | 7 | 0 | 392 | 7 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.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
2 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 27.95KB | 8.14KB | ▼ 70.88% |
screenshot-2.png | 28.32KB | 9.39KB | ▼ 66.84% |