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: ▼7.49ms] Passed 4 tests
An overview of server-side resources used by CS Likes Counter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 31.84 ▼12.54 |
Dashboard /wp-admin | 3.32 ▲0.02 | 42.77 ▼5.17 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.01 ▲2.51 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 78.99 ▼14.39 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 32.87 ▲2.16 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by CS Likes Counter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲155 | 13.66 ▼0.66 | 7.89 ▲5.87 | 36.78 ▼7.10 |
Dashboard /wp-admin | 2,206 ▲21 | 4.88 ▲0.00 | 111.46 ▲3.85 | 43.91 ▼0.28 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.01 | 40.66 ▲3.77 | 34.89 ▼1.10 |
Add New Post /wp-admin/post-new.php | 6,309 ▲4,795 | 22.09 ▲4.52 | 895.00 ▲204.39 | 64.65 ▲6.50 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.24 ▲0.06 | 99.26 ▼3.11 | 41.86 ▼1.62 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
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 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/cs-likes-counter/js/jquery-notice/index.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
include(): Failed opening '../includes/footer.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/cs-likes-counter/js/jquery-notice/index.php on line 92
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/cs-likes-counter/cs-likes-counter.php:19
- > PHP Warning
include(../includes/footer.php): failed to open stream: No such file or directory in wp-content/plugins/cs-likes-counter/js/jquery-notice/index.php on line 92
- > PHP Warning
include(): Failed opening '../includes/header.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/cs-likes-counter/js/jquery-notice/index.php on line 82
- > PHP Warning
include(../includes/header.php): failed to open stream: No such file or directory in wp-content/plugins/cs-likes-counter/js/jquery-notice/index.php on line 82
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: likes, dislikes, likes counter
cs-likes-counter/cs-likes-counter.php 92% from 13 tests
The entry point to "CS Likes Counter" version 1.0.6 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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 plugin528 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 102 | 71 | 287 |
JavaScript | 2 | 21 | 32 | 110 |
CSS | 2 | 3 | 0 | 82 |
PO File | 1 | 13 | 13 | 48 |
XML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 3 | 21.43% |
▷ Public methods | 14 | 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 | 1 | |
▷ Global constants | 1 | 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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/like.png | 0.44KB | 0.48KB | 0.00% |
img/icons.png | 1.59KB | 1.92KB | 0.00% |
img/dislike.png | 0.44KB | 0.48KB | 0.00% |