Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.67ms] Passed 4 tests
A check of server-side resources used by Themepaw Companion
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 32.53 ▼4.79 |
Dashboard /wp-admin | 3.31 ▼0.04 | 42.73 ▼22.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 40.44 ▼5.33 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.52 ▼10.40 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.79 ▼0.15 |
Server storage [IO: ▲2.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Themepaw Companion
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.35 ▲0.00 | 1.68 ▼0.32 | 37.40 ▼4.21 |
Dashboard /wp-admin | 2,192 ▲12 | 5.56 ▼0.10 | 82.03 ▼6.18 | 41.80 ▼3.34 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.03 | 35.03 ▼2.71 | 33.76 ▼3.96 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 18.10 ▼5.13 | 592.44 ▼65.01 | 60.71 ▲1.10 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.26 ▲0.11 | 93.52 ▼8.49 | 43.47 ▼1.22 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
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
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: elementor addon, elements, elementor, addons, elementor testimonial...
themepaw-companion/themepaw-companion.php 85% from 13 tests
The main file in "Themepaw Companion" v. 0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
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 plugin29,133 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 720 | 26 | 15,023 |
JavaScript | 7 | 2,034 | 1,693 | 7,508 |
PHP | 10 | 707 | 395 | 5,393 |
Sass | 7 | 119 | 44 | 847 |
SVG | 1 | 0 | 0 | 362 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 20.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 93 | |
▷ Static methods | 3 | 3.23% |
▷ Public methods | 72 | 77.42% |
▷ Protected methods | 19 | 20.43% |
▷ Private methods | 2 | 2.15% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cube.png | 1.14KB | 0.56KB | ▼ 50.73% |
assets/images/xplaceholder.png | 4.19KB | 1.97KB | ▼ 52.93% |
assets/images/placeholder.png | 5.09KB | 2.42KB | ▼ 52.44% |