Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.91ms] Passed 4 tests
A check of server-side resources used by Collapse-O-Matic
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 41.80 ▲3.96 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.49 ▼2.22 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.39 ▲5.03 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 83.72 ▼13.56 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.76 ▲0.17 |
Collapse-O-Matic /wp-admin/options-general.php?page=collapse-o-matic-options | 3.23 | 29.58 |
Server storage [IO: ▲0.13MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Collapse-O-Matic: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲145 | 13.51 ▼0.84 | 9.71 ▲8.06 | 44.19 ▲1.16 |
Dashboard /wp-admin | 2,196 ▲16 | 5.63 ▼0.03 | 96.34 ▲9.68 | 41.39 ▲1.76 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.97 ▼0.03 | 34.48 ▼6.61 | 34.03 ▼3.08 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 18.84 ▼4.16 | 631.06 ▲31.49 | 66.46 ▲18.83 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.16 ▼0.11 | 98.01 ▼0.73 | 41.15 ▼1.40 |
Collapse-O-Matic /wp-admin/options-general.php?page=collapse-o-matic-options | 1,889 | 10.60 | 346.40 | 68.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/jquery-collapse-o-matic/collapse-o-matic.php:851
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=collapse-o-matic-options
- > Network (severe)
wp-content/plugins/jquery-collapse-o-matic/css/admin_style.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=collapse-o-matic-options
- > Network (severe)
wp-content/plugins/jquery-collapse-o-matic/images/collapse-o-matic-icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% 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 to be fixed:
- Tags: There are too many tags (19 tag instead of maximum 10)
jquery-collapse-o-matic/collapse-o-matic.php 92% from 13 tests
The entry point to "Collapse-O-Matic" version 1.8.5.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("jquery-collapse-o-matic.php" instead of "collapse-o-matic.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,369 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 94 | 98 | 753 |
JavaScript | 2 | 97 | 89 | 486 |
CSS | 3 | 0 | 0 | 99 |
Markdown | 1 | 7 | 0 | 31 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 110.00 |
▷ Minimum class complexity | 110.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 10.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/arrow-up-dark.png | 1.07KB | 0.24KB | ▼ 77.63% |
css/images/collapse-o-matic-icon.png | 2.46KB | 1.75KB | ▼ 28.97% |
css/images/arrow-down.png | 1.08KB | 0.24KB | ▼ 77.93% |
css/images/arrow-down-dark.png | 1.07KB | 0.24KB | ▼ 77.65% |
css/images/arrow-up.png | 1.08KB | 0.24KB | ▼ 77.83% |