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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.29MB] [CPU: ▲1.76ms] Passed 4 tests
A check of server-side resources used by Featuring CountComments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 36.89 ▲2.24 |
Dashboard /wp-admin | 3.65 ▲0.35 | 44.67 ▼0.14 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 45.90 ▼0.35 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 90.13 ▲6.12 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 39.40 ▲5.28 |
Featuring CountComments /wp-admin/options-general.php?page=featuring_countcomments | 3.49 | 33.24 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_featuring_countcomments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
featuring_countcomments |
Browser metrics Passed 4 tests
Featuring CountComments: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.30 ▼0.43 | 1.91 ▲0.24 | 40.56 ▲0.61 |
Dashboard /wp-admin | 2,201 ▲27 | 5.62 ▼0.08 | 91.30 ▲0.32 | 39.55 ▼4.41 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 1.99 ▲0.05 | 39.73 ▼1.47 | 35.90 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,533 ▼2 | 23.14 ▲4.85 | 677.04 ▲77.61 | 55.95 ▼7.10 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.19 ▼0.15 | 94.88 ▼2.08 | 45.52 ▲2.59 |
Featuring CountComments /wp-admin/options-general.php?page=featuring_countcomments | 1,542 | 1.73 | 29.63 | 46.76 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/featuring-countcomments/uninstall.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/featuring-countcomments/featuring-countcomments.php:331
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (This screenshot shows the extended users table in the Admin Menu.), #2 (This picture presents an example widget output in the sidebar.), #3 (This screenshot depicts the Settings/Featuring CountComments Tab in the Admin Menu.)
- Tags: There are too many tags (13 tag instead of maximum 10)
featuring-countcomments/featuring-countcomments.php Passed 13 tests
The primary PHP file in "Featuring CountComments" version 1.64 is used by WordPress to initiate all plugin functionality
93 characters long description:
Counts the number of comments for each user who has been logged in at the time of commenting.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,005 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 618 | 763 | 931 |
CSS | 1 | 9 | 0 | 39 |
JavaScript | 2 | 9 | 10 | 35 |
PHP code Passed 2 tests
This is a short overview 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.38 |
Average class complexity | 74.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 139.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 88 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 56 | 63.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 32 | 36.36% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 52.40KB | 21.88KB | ▼ 58.24% |
screenshot-1.png | 20.50KB | 10.03KB | ▼ 51.08% |
screenshot-2.png | 1.80KB | 1.26KB | ▼ 29.67% |