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
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.90ms] Passed 4 tests
An overview of server-side resources used by Statistinator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 36.52 ▼7.21 |
Dashboard /wp-admin | 3.40 ▲0.10 | 45.79 ▼2.14 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 44.16 ▼4.67 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 86.44 ▼9.57 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 36.78 ▲5.18 |
Statistinator /wp-admin/options-general.php?page=statistinator | 3.29 | 30.01 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
statistinator_status |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Statistinator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲121 | 13.26 ▼1.49 | 4.59 ▲2.70 | 43.24 ▲0.16 |
Dashboard /wp-admin | 2,259 ▲74 | 5.83 ▼0.06 | 98.82 ▼8.53 | 41.39 ▼0.53 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.03 | 32.73 ▼0.73 | 33.36 ▼2.85 |
Add New Post /wp-admin/post-new.php | 1,539 ▼3 | 23.43 ▲4.92 | 654.45 ▲14.35 | 52.42 ▼2.40 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.20 ▼0.03 | 95.91 ▼5.44 | 42.26 ▼0.33 |
Statistinator /wp-admin/options-general.php?page=statistinator | 826 | 1.93 | 24.79 | 33.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- statistinator_status
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/statistinator/statistinator.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
statistinator/statistinator.php Passed 13 tests
The main PHP script in "Statistinator" version 1.2.2 is automatically included on every request by WordPress
41 characters long description:
Your social media analytics in one place.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin7,952 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,444 | 761 | 7,253 |
PHP | 7 | 98 | 68 | 583 |
CSS | 2 | 12 | 11 | 116 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 10 | 33.33% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/youtube.png | 6.52KB | 3.90KB | ▼ 40.19% |
images/mailchimp.png | 10.80KB | 4.12KB | ▼ 61.80% |
images/google.png | 13.57KB | 9.59KB | ▼ 29.35% |
images/facebook.png | 1.41KB | 1.21KB | ▼ 14.02% |
images/twitter.png | 3.90KB | 2.27KB | ▼ 41.68% |