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
Installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼4.25ms] Passed 4 tests
This is a short check of server-side resources used by FLYYER Previews
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 40.84 ▼1.77 |
Dashboard /wp-admin | 3.50 ▲0.20 | 44.52 ▼3.93 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 46.17 ▼0.09 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 81.82 ▼11.21 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 36.33 ▲2.39 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
flyyer_previews_version |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for FLYYER Previews
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲182 | 13.52 ▼0.74 | 8.29 ▲6.57 | 42.83 ▲0.27 |
Dashboard /wp-admin | 2,229 ▲38 | 4.87 ▼1.00 | 95.71 ▼7.76 | 40.72 ▼0.20 |
Posts /wp-admin/edit.php | 2,109 ▲17 | 2.08 ▲0.08 | 35.60 ▼1.27 | 31.79 ▼0.93 |
Add New Post /wp-admin/post-new.php | 1,531 ▲12 | 23.41 ▲0.35 | 664.26 ▲62.46 | 60.15 ▲5.43 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.21 ▲0.02 | 93.65 ▼2.97 | 42.38 ▼0.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- flyyer_previews_version
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/flyyer-previews/flyyer/tests/FlyyerRenderTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/flyyer-previews/vendor/flyyer/flyyer/tests/FlyyerRenderTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/flyyer-previews/vendor/flyyer/flyyer/tests/FlyyerTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/flyyer-previews/flyyer/tests/FlyyerTest.php:8
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Description of first screenshot named screenshot-1), #2 (Description of second screenshot named screenshot-2), #3 (Description of third screenshot named screenshot-3)
flyyer-previews/flyyer-previews.php 92% from 13 tests
The main PHP file in "FLYYER Previews" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 159 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,240 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 260 | 691 | 1,080 |
Markdown | 1 | 46 | 0 | 122 |
JSON | 1 | 0 | 0 | 36 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 12.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 8 | 57.14% |
Methods | 97 | |
▷ Static methods | 6 | 6.19% |
▷ Public methods | 94 | 96.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.09% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.19MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1344x500.png | 135.90KB | 136.18KB | 0.00% |
assets/banner-772x250.png | 54.00KB | 54.10KB | 0.00% |
assets/icon-256x256.png | 2.39KB | 2.39KB | 0.00% |
assets/icon-128x128.png | 1.63KB | 1.63KB | 0.00% |