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
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼0.43ms] Passed 4 tests
Server-side resources used by CC-Auto-Activate-Plugins
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 43.59 ▲2.32 |
Dashboard /wp-admin | 3.38 ▲0.07 | 50.58 ▼9.25 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.63 ▲2.73 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 93.14 ▲5.25 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 41.11 ▲2.48 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for CC-Auto-Activate-Plugins
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲52 | 13.15 ▼1.21 | 4.04 ▲2.18 | 42.12 ▼6.26 |
Dashboard /wp-admin | 2,215 ▲30 | 5.81 ▲0.73 | 108.97 ▲4.07 | 44.89 ▲2.94 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.00 ▲0.01 | 39.49 ▲1.24 | 36.61 ▲1.58 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 22.92 ▲5.55 | 649.11 ▲24.28 | 92.75 ▲30.80 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.16 ▼0.02 | 114.32 ▲1.97 | 42.14 ▼2.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
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 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: You are using too many tags: 15 tag instead of maximum 10
- Screenshots: Screenshot #1 (**CC-Auto-Activate-Plugins** - Visit the 'Plugins' to activate the plugin.) image not found
cc-auto-activate-plugins/plugin.php 77% from 13 tests
The main file in "CC-Auto-Activate-Plugins" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cc-auto-activate-plugins.php" instead of "plugin.php")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/")
- Domain Path: Prefix the domain path with a forward slash character ("//")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin219 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 81 | 74 | 197 |
JSON | 1 | 0 | 0 | 22 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 12.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 6 | 27.27% |
▷ Public methods | 14 | 63.64% |
▷ Protected methods | 7 | 31.82% |
▷ Private methods | 1 | 4.55% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 16.64KB | 7.67KB | ▼ 53.90% |