Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.50ms] Passed 4 tests
Analyzing server-side resources used by Simple Analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 40.14 ▲4.41 |
Dashboard /wp-admin | 3.33 ▼0.02 | 49.79 ▼12.52 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.41 ▲1.76 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.56 ▼12.91 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.37 ▲1.69 |
Simple Analytics /wp-admin/options-general.php?page=simple-analytics-settings | 3.22 | 30.79 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Analytics
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲58 | 13.98 ▼0.09 | 2.00 ▲0.46 | 43.55 ▲5.78 |
Dashboard /wp-admin | 2,198 ▲23 | 5.51 ▼0.19 | 93.56 ▼26.40 | 41.71 ▼1.20 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 2.03 ▲0.09 | 36.89 ▲1.78 | 37.82 ▲5.31 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.04 ▼0.00 | 589.85 ▼73.75 | 48.05 ▼15.98 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.21 ▼0.01 | 96.77 ▼12.15 | 42.12 ▼2.16 |
Simple Analytics /wp-admin/options-general.php?page=simple-analytics-settings | 805 | 2.00 | 24.77 | 25.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=simple-analytics-settings
- > Console-api (warning) in wp-content/plugins/simpleanalytics/public/js/admins.js+0:8
Simple Analytics: Not logging requests from admins
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Please describe screenshot #4 in simpleanalytics/assets to your readme.txt
simpleanalytics/simple-analytics.php 69% from 13 tests
The principal PHP file in "Simple Analytics" v. 1.16 is loaded by WordPress automatically on each request
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/lang/")
- Requires at least: Required version does not match the one declared in readme.txt ("2.0" instead of "2.0.0")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simpleanalytics.php" instead of "simple-analytics.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin142 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 21 | 28 | 89 |
Bourne Shell | 1 | 14 | 12 | 42 |
Markdown | 1 | 5 | 0 | 9 |
JavaScript | 1 | 0 | 0 | 1 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 compressed PNG files occupy 0.34MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 0.40KB | 0.42KB | 0.00% |
assets/screenshot-2.png | 63.37KB | 69.90KB | 0.00% |
assets/screenshot-3.png | 80.30KB | 87.35KB | 0.00% |
assets/icon-128x128.png | 0.24KB | 0.25KB | 0.00% |
assets/banner-1880x609.png | 8.05KB | 8.90KB | 0.00% |