Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.07MB] [CPU: ▼276.22ms] Passed 4 tests
This is a short check of server-side resources used by Quotable
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 28.61 ▲5.74 |
Dashboard /wp-admin | 3.04 ▼0.01 | 28.94 ▼6.91 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 32.58 ▼12.82 |
Add New Post /wp-admin/post-new.php | 5.09 ▼0.34 | 77.03 ▼1,072.32 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 28.04 ▼12.84 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 1 new option
New WordPress options |
---|
quotable_activation |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Quotable
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,973 ▲391 | 24.83 ▲9.36 | 11.55 ▲3.50 | 46.41 ▼1.76 |
Dashboard /wp-admin | 3,193 ▲340 | 13.93 ▲7.97 | 300.91 ▲172.33 | 131.08 ▲19.36 |
Posts /wp-admin/edit.php | 3,013 ▲307 | 10.75 ▲7.93 | 178.89 ▲112.27 | 89.89 ▼6.51 |
Add New Post /wp-admin/post-new.php | 1,872 ▼166 | 19.47 ▼0.04 | 274.87 ▼101.03 | 111.84 ▲4.92 |
Media Library /wp-admin/upload.php | 2,001 ▲226 | 12.23 ▲7.22 | 174.90 ▲25.80 | 108.22 ▼3.77 |
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
- Zombie WordPress options detected upon uninstall: 1 option
- quotable_activation
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/quotable/admin/partials/quotable-settings-checkboxes.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/quotable/admin/partials/quotable-settings-header.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/quotable/admin/partials/quotable-metabox.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: quotes, share buttons, social media, twitter, medium
quotable/quotable.php Passed 13 tests
Analyzing the main PHP file in "Quotable" version 2.1.0
121 characters long description:
Adds buttons to quotes and text selection that make it quick and easy for your readers to share quotes from your website.
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 plugin1,066 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 125 | 569 | 503 |
PO File | 3 | 45 | 51 | 224 |
JavaScript | 4 | 15 | 12 | 196 |
JSON | 5 | 0 | 0 | 128 |
CSS | 1 | 1 | 1 | 14 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 6.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 34 | 87.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.82% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin