Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.23ms] Passed 4 tests
A check of server-side resources used by WP Year End Stats
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.87 ▲0.13 |
Dashboard /wp-admin | 3.38 ▲0.07 | 45.69 ▼3.60 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 43.56 ▼4.44 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 81.31 ▼15.23 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.96 ▼1.66 |
Year End Stats /wp-admin/index.php?page=year-end-stats | 3.27 | 31.26 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
WP Year End Stats: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲113 | 13.93 ▼0.49 | 8.52 ▲6.94 | 43.19 ▲1.01 |
Dashboard /wp-admin | 2,199 ▲21 | 5.59 ▼0.05 | 92.05 ▼9.11 | 40.60 ▼1.45 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 1.98 ▲0.04 | 40.61 ▲4.63 | 34.19 ▼0.52 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.03 ▲0.08 | 643.92 ▼44.35 | 53.85 ▼0.52 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.20 ▲0.01 | 97.39 ▼1.59 | 44.91 ▼1.75 |
Year End Stats /wp-admin/index.php?page=year-end-stats | 827 | 2.03 | 23.68 | 26.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 SM\\YearEndStats\\Shortcode\\add_shortcode() in wp-content/plugins/wp-yearendstats/includes/shortcode.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-yearendstats/wp-yearendstats.php:47
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: stats, comments, posts
wp-yearendstats/wp-yearendstats.php 85% from 13 tests
The main PHP file in "WP Year End Stats" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Domain Path: The domain path must begin with a forward slash character ("/languages/")
- Domain Path: The domain path should use only dashes and lowercase characters ("languages/")
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
Success! There were no dangerous files found in this plugin2,638 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 529 | 406 | 2,241 |
PHP | 3 | 59 | 147 | 397 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 54.55% |
▷ Protected methods | 10 | 45.45% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin