Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/q3-activity/q3-activity.php+85
Declaration of Q3_List_Table::prepare_items($rows) should be compatible with WP_List_Table::prepare_items()
Server metrics [RAM: ▼1.77MB] [CPU: ▼60.37ms] Passed 4 tests
Analyzing server-side resources used by Q3-Activity
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.25 | 6.15 ▼40.16 |
Dashboard /wp-admin | 2.23 ▼1.07 | 6.44 ▼46.60 |
Posts /wp-admin/edit.php | 2.24 ▼1.12 | 6.39 ▼46.12 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.65 | 6.74 ▼108.60 |
Media Library /wp-admin/upload.php | 2.23 ▼1.00 | 6.76 ▼32.43 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Q3-Activity
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.34 ▲0.05 | 1.78 ▼0.19 | 45.04 ▼0.46 |
Dashboard /wp-admin | 2,214 ▲34 | 5.63 ▼0.01 | 87.12 ▼4.28 | 42.33 ▼0.66 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.02 ▼0.00 | 35.04 ▼4.79 | 36.04 ▲0.94 |
Add New Post /wp-admin/post-new.php | 1,552 ▲17 | 23.13 ▲5.06 | 666.35 ▲46.23 | 55.00 ▼1.97 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.20 ▲0.00 | 107.33 ▲2.64 | 47.13 ▲4.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/q3-activity/q3-activity.php+106
Methods with the same name as their class will not be constructors in a future version of PHP; Q3_Activity_Report has a deprecated constructor
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/q3-activity/q3-activity.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Report list), #2 (List of posts, created for a specified period of time by an author)
q3-activity/q3-activity.php Passed 13 tests
The entry point to "Q3-Activity" version 0.3 is a PHP file that has certain tags in its header comment area
110 characters long description:
Monitors user activity. Shows a list of users and the number of posts, created for a specified period of time.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected639 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 86 | 89 | 365 |
CSS | 1 | 25 | 58 | 274 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
13 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
img/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
img/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
img/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
img/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |