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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼130.74ms] Passed 4 tests
Analyzing server-side resources used by Quoty
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.08 | 34.37 ▲2.02 |
Dashboard /wp-admin | 3.14 ▲0.08 | 46.75 ▲3.80 |
Posts /wp-admin/edit.php | 3.25 ▲0.14 | 44.81 ▼0.15 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 127.71 ▼521.63 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 31.90 ▼3.20 |
Quoty Settings /wp-admin/options-general.php?page=quoty | 3.05 | 28.15 |
Server storage [IO: ▲1.93MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 1 new option
New WordPress options |
---|
quoty_options |
Browser metrics Passed 4 tests
Checking browser requirements for Quoty
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,818 ▲222 | 17.95 ▲2.34 | 36.54 ▲27.90 | 45.86 ▼2.85 |
Dashboard /wp-admin | 2,979 ▲48 | 5.89 ▼0.27 | 144.58 ▼8.32 | 106.71 ▼2.56 |
Posts /wp-admin/edit.php | 2,745 ▲6 | 2.70 ▼0.15 | 70.33 ▲2.62 | 97.48 ▲10.05 |
Add New Post /wp-admin/post-new.php | 1,622 ▼61 | 21.58 ▲2.83 | 326.35 ▼88.06 | 120.92 ▲11.66 |
Media Library /wp-admin/upload.php | 1,819 ▲71 | 5.02 ▲0.03 | 150.76 ▲20.43 | 113.87 ▼3.96 |
Quoty Settings /wp-admin/options-general.php?page=quoty | 1,217 | 2.45 | 55.26 | 67.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 1 option in the database
- quoty_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 3× 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/quoty/public/partials/quoty-public-display.php:18
- > PHP Fatal error
Uncaught Error: Class 'Quoty_Admin' not found in wp-content/plugins/quoty/admin/settings/class-quoty-settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/quoty/admin/partials/quoty-admin-display.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== quoty ===
) - Screenshots: Screenshot #2 (Quoty Settings) image not found
quoty/quoty.php Passed 13 tests
This is the main PHP file of "Quoty" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
A simple plugin for sharing selected text on social networks.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected11,124 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 2,215 | 6,573 | 10,510 |
PHP | 11 | 145 | 491 | 315 |
JSX | 7 | 34 | 0 | 185 |
CSS | 3 | 7 | 0 | 92 |
JSON | 1 | 0 | 0 | 22 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 2.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 1.23MB with 0.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 488.12KB | 222.31KB | ▼ 54.46% |
screenshot-2.png | 84.67KB | 34.83KB | ▼ 58.87% |
assets/icon-128x128.png | 13.04KB | 6.84KB | ▼ 47.56% |
assets/screenshot-1.png | 229.36KB | 111.44KB | ▼ 51.41% |
assets/icon-256x256.png | 39.35KB | 21.96KB | ▼ 44.19% |