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
Install script ran successfully
Server metrics [RAM: ▼0.22MB] [CPU: ▼16.02ms] Passed 4 tests
This is a short check of server-side resources used by Typetura
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.31 ▼4.35 |
Dashboard /wp-admin | 3.07 ▼0.23 | 26.30 ▼20.61 |
Posts /wp-admin/edit.php | 3.21 ▼0.15 | 32.04 ▼12.24 |
Add New Post /wp-admin/post-new.php | 5.45 ▼0.44 | 68.33 ▼25.05 |
Media Library /wp-admin/upload.php | 3.14 ▼0.09 | 26.61 ▼6.17 |
Typetura Settings /wp-admin/options-general.php?page=typetura | 3.06 | 26.98 |
Server storage [IO: ▲2.91MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Typetura
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲106 | 13.68 ▼0.31 | 3.69 ▲1.87 | 39.83 ▼4.64 |
Dashboard /wp-admin | 2,213 ▲25 | 4.86 ▼0.04 | 97.11 ▼5.92 | 39.47 ▼1.05 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.01 ▲0.01 | 34.33 ▲1.10 | 31.05 ▼5.93 |
Add New Post /wp-admin/post-new.php | 1,523 ▲9 | 23.13 ▲5.69 | 670.39 ▲18.94 | 54.33 ▼2.47 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.31 ▲0.09 | 94.09 ▼5.28 | 42.65 ▼3.07 |
Typetura Settings /wp-admin/options-general.php?page=typetura | 1,001 | 2.18 | 23.86 | 27.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=typetura
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'Typetura_Admin' does not have a method 'enqueue_styles'
- > GET request to /wp-admin/options-general.php?page=typetura
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'Typetura_Admin' does not have a method 'enqueue_scripts'
- > GET request to /wp-admin/options-general.php?page=typetura
- > Notice in wp-content/plugins/typetura/admin/partials/typetura-admin-display.php+46
Trying to access array offset on value of type null
- > GET request to /wp-admin/options-general.php?page=typetura
- > Warning in wp-content/plugins/typetura/admin/partials/typetura-admin-display.php+225
Invalid argument supplied for foreach()
SRP 0% from 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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/typetura/public/partials/typetura-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/typetura/admin/partials/typetura-admin-display.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=typetura
- > Network (severe)
https://cdn.typetura.com/typetura.js?apiKey=XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX&ver=6.3.1 - Failed to load resource: the server responded with a status of 401 ()
- > GET request to /wp-admin/options-general.php?page=typetura
- > Network (severe)
https://cdn.typetura.com/armonk/typetura-admin.css?apiKey=XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX&ver=6.3.1 - Failed to load resource: the server responded with a status of 401 ()
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:
- Plugin Name: You should set the name of your plugin on the first line (
=== typetura ===
)
typetura/typetura.php Passed 13 tests
"Typetura" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
94 characters long description:
We typeset your website! Typography that works on your website regardless of layout or device.
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
Everything looks great! No dangerous files found in this plugin1,111 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 119 | 425 | 679 |
CSS | 2 | 0 | 10 | 286 |
JavaScript | 2 | 5 | 6 | 90 |
SVG | 1 | 0 | 0 | 56 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
9 PNG files occupy 2.84MB with 1.68MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 335.43KB | 154.75KB | ▼ 53.87% |
assets/screenshot-5.png | 331.36KB | 130.38KB | ▼ 60.65% |
assets/banner-1544x500.png | 630.62KB | 264.57KB | ▼ 58.05% |
assets/banner-772x250.png | 169.34KB | 71.60KB | ▼ 57.72% |
assets/screenshot-4.png | 277.37KB | 95.58KB | ▼ 65.54% |