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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.77ms] Passed 4 tests
This is a short check of server-side resources used by WA Fronted
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 34.42 ▼6.67 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.70 ▼3.22 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.59 ▼0.95 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 82.36 ▼8.25 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.27 ▼0.89 |
Server storage [IO: ▲10.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 505 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WA Fronted
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.32 ▼1.35 | 4.62 ▲2.91 | 43.64 ▲4.28 |
Dashboard /wp-admin | 2,206 ▲18 | 4.83 ▼0.06 | 107.57 ▲3.18 | 37.80 ▼7.94 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.05 | 38.61 ▲2.42 | 33.31 ▼3.31 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.60 ▼3.70 | 626.62 ▼61.00 | 52.44 ▼2.55 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.20 ▼0.01 | 98.55 ▲1.94 | 42.16 ▼5.65 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 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
Please take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Shortcode_UI' not found in wp-content/plugins/wa-fronted/extensions/shortcake/shortcake.php:2
- > PHP Fatal error
Uncaught Error: Class 'WA_Fronted' not found in wp-content/plugins/wa-fronted/extensions/acf/acf.php:2
- > PHP Fatal error
Uncaught Error: Class 'WA_Fronted' not found in wp-content/plugins/wa-fronted/extensions/woocommerce/woocommerce.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wa-fronted/wa-fronted.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
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 to be fixed:
- Screenshots: No descriptions were found for these screenshots #2, #3 in wa-fronted/assets to your readme.txt
wa-fronted/wa-fronted.php Passed 13 tests
The main PHP script in "WA Fronted" version 1.3.9 is automatically included on every request by WordPress
63 characters long description:
Edit content directly from fronted in the contents actual place
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin66,700 lines of code in 368 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 254 | 11,362 | 6,795 | 50,914 |
Sass | 37 | 905 | 39 | 6,113 |
HTML | 23 | 1,004 | 1,678 | 3,986 |
PHP | 4 | 318 | 271 | 1,840 |
SVG | 3 | 2 | 2 | 1,096 |
CSS | 14 | 82 | 51 | 1,006 |
Markdown | 11 | 230 | 0 | 988 |
JSON | 19 | 0 | 0 | 524 |
LESS | 1 | 42 | 11 | 214 |
YAML | 2 | 4 | 0 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 88.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 220.00 |
Average method complexity | 7.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 1 | 1.85% |
▷ Public methods | 42 | 77.78% |
▷ Protected methods | 10 | 18.52% |
▷ Private methods | 2 | 3.70% |
Functions | 11 | |
▷ Named functions | 2 | 18.18% |
▷ Anonymous functions | 9 | 81.82% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
63 PNG files occupy 0.45MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bower_components/select2/docs/vendor/images/flags/or.png | 9.31KB | 4.06KB | ▼ 56.38% |
bower_components/select2/docs/vendor/images/flags/ms.png | 5.95KB | 2.64KB | ▼ 55.60% |
bower_components/select2/docs/vendor/images/flags/ri.png | 6.76KB | 3.13KB | ▼ 53.76% |
bower_components/select2/docs/vendor/images/flags/ok.png | 7.12KB | 3.33KB | ▼ 53.22% |
bower_components/select2/docs/vendor/images/flags/nm.png | 1.49KB | 0.96KB | ▼ 35.13% |