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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.11ms] Passed 4 tests
Server-side resources used by trendcounter - Analytics and Counter for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 44.70 ▲2.69 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.78 ▲1.79 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.03 ▲4.34 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.47 ▼8.56 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.48 ▲3.65 |
trendcounter /wp-admin/options-general.php?page=trendcounter/trendcounter.php | 3.21 | 29.51 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by trendcounter - Analytics and Counter for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.31 ▼1.09 | 1.87 ▲0.08 | 44.09 ▼8.04 |
Dashboard /wp-admin | 2,212 ▲24 | 5.83 ▼0.06 | 95.49 ▼17.60 | 39.74 ▼8.43 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.01 ▲0.01 | 40.51 ▲3.91 | 34.33 ▲0.29 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 17.72 ▼5.59 | 678.88 ▲9.29 | 69.02 ▲14.65 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.31 ▲0.16 | 102.87 ▲9.68 | 39.65 ▼6.57 |
trendcounter /wp-admin/options-general.php?page=trendcounter/trendcounter.php | 929 | 2.05 | 25.87 | 33.27 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/trendcounter/trendcounter.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: analytics, counter, statistics, trendcounter, besucherzhler...
trendcounter/trendcounter.php Passed 13 tests
Analyzing the main PHP file in "trendcounter - Analytics and Counter for WordPress" version 1.0
65 characters long description:
See in real-time what is happening on your blog with trendcounter
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin334 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 98 | 39 | 306 |
CSS | 1 | 6 | 0 | 28 |
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.30 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-32x32.png | 0.89KB | 1.25KB | 0.00% |
assets/installation.png | 21.66KB | 8.72KB | ▼ 59.72% |