Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.04ms] Passed 4 tests
This is a short check of server-side resources used by Frontify
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.56 ▼3.14 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.76 ▼6.67 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 51.66 ▲1.31 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 95.32 ▼3.67 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.76 ▲4.08 |
Frontify /wp-admin/options-general.php?page=frontify-settings | 3.22 | 33.71 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Frontify
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.24 ▼1.08 | 1.73 ▼0.07 | 40.38 ▼7.39 |
Dashboard /wp-admin | 2,210 ▲25 | 6.06 ▲1.17 | 108.51 ▼10.48 | 38.19 ▼11.12 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.00 | 39.47 ▲5.09 | 35.20 ▼0.03 |
Add New Post /wp-admin/post-new.php | 6,588 ▲5,074 | 29.21 ▲11.64 | 955.41 ▲264.91 | 62.28 ▲11.06 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.24 ▲0.05 | 95.47 ▼6.77 | 42.84 ▼3.22 |
Frontify /wp-admin/options-general.php?page=frontify-settings | 798 | 2.06 | 25.12 | 27.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Add your project credentials in the settings section of your wordpress installation: setup.png), #2 (You are ready to use the Frontify Image Block to choose from your linked Media Library: block.png)
frontify/index.php 92% from 13 tests
The main PHP script in "Frontify" version 0.0.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("frontify.php" instead of "index.php")
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
There were no executable files found in this plugin13,734 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 13,279 |
JavaScript | 2 | 35 | 59 | 313 |
PHP | 2 | 17 | 8 | 127 |
CSS | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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 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
2 PNG files occupy 0.38MB with 0.25MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/block.png | 328.35KB | 111.77KB | ▼ 65.96% |
assets/setup.png | 64.71KB | 23.86KB | ▼ 63.13% |