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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.56MB] [CPU: ▲8.80ms] Passed 4 tests
This is a short check of server-side resources used by Wolf Library Templates
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.02 ▲1.56 | 54.48 ▲11.81 |
Dashboard /wp-admin | 4.86 ▲1.56 | 54.43 ▲9.86 |
Posts /wp-admin/edit.php | 4.91 ▲1.56 | 60.84 ▲9.84 |
Add New Post /wp-admin/post-new.php | 7.46 ▲1.58 | 98.71 ▲3.69 |
Media Library /wp-admin/upload.php | 4.79 ▲1.56 | 53.35 ▲20.36 |
Library Templates /wp-admin/themes.php?page=wolf-library-templates | 4.69 | 41.76 |
Server storage [IO: ▲1.98MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 179 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Wolf Library Templates
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲165 | 13.44 ▼1.11 | 1.99 ▼0.21 | 36.99 ▼10.27 |
Dashboard /wp-admin | 2,296 ▲108 | 5.14 ▲0.29 | 108.99 ▼4.03 | 39.46 ▼5.35 |
Posts /wp-admin/edit.php | 2,161 ▲69 | 2.54 ▲0.54 | 43.78 ▲4.06 | 33.56 ▼3.62 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.32 ▲5.11 | 607.70 ▼4.85 | 35.71 ▼18.43 |
Media Library /wp-admin/upload.php | 1,469 ▲84 | 4.58 ▲0.39 | 100.21 ▼0.01 | 41.36 ▼1.82 |
Library Templates /wp-admin/themes.php?page=wolf-library-templates | 989 | 2.57 | 32.74 | 36.27 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (screenshot.png) image not found
wolf-library-templates/main.php 92% from 13 tests
The primary PHP file in "Wolf Library Templates" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wolf-library-templates.php" instead of "main.php")
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 plugin37,827 lines of code in 152 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 99 | 3,598 | 1,486 | 15,205 |
JavaScript | 10 | 1,832 | 574 | 6,534 |
PO File | 20 | 3,037 | 3,414 | 6,180 |
Sass | 15 | 959 | 3 | 4,837 |
CSS | 5 | 345 | 478 | 4,468 |
JSON | 1 | 0 | 0 | 601 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 24.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 6.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 70 | |
▷ Abstract classes | 2 | 2.86% |
▷ Concrete classes | 68 | 97.14% |
▷ Final classes | 0 | 0.00% |
Methods | 291 | |
▷ Static methods | 46 | 15.81% |
▷ Public methods | 290 | 99.66% |
▷ Protected methods | 1 | 0.34% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
(invalid) templates/education/screenshot.png | 77.85KB | 0.00KB | ▼ 100.00% |