Benchmarks
Plugin footprint 82% 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.30MB] [CPU: ▼15.45ms] Passed 4 tests
An overview of server-side resources used by tinyfier-wp
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 6.20 ▼41.08 |
Dashboard /wp-admin | 3.38 ▲0.03 | 44.66 ▼17.61 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 49.72 ▲2.25 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 92.90 ▼3.39 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 33.76 ▲0.28 |
Tinyfier /wp-admin/options-general.php?page=tinyfier | 3.27 | 32.24 |
Server storage [IO: ▲11.39MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Just a few items left to fix
- Illegal file modification detected: 29 files (961.72KB) outside of "wp-content/plugins/tinyfier-wp/" and "wp-content/uploads/"
- (new file) wp-content/tinyfier-cache/tynifier_482b80457e997d0ea73151dbf0bdaed9_1696829338.js.gzip
- (new file) wp-content/tinyfier-cache/tynifier_4ba2e1435e2973ac8f09c4514d72e4ea_1696829338.css.deflate
- (new file) wp-content/tinyfier-cache/tynifier_482b80457e997d0ea73151dbf0bdaed9_1696829338.js
- (new file) wp-content/tinyfier-cache/tynifier_482b80457e997d0ea73151dbf0bdaed9_1696829338.js.deflate
- (new file) wp-content/tinyfier-cache/tynifier_29b2f957426dbe1bd5e547cfbea5e3b4_1696829338.css
- (new file) wp-content/tinyfier-cache/tynifier_4ba2e1435e2973ac8f09c4514d72e4ea_1696829338.css.gzip
- (new file) wp-content/tinyfier-cache/tynifier_29b2f957426dbe1bd5e547cfbea5e3b4_1696829338.css.gzip
- (new file) wp-content/tinyfier-cache/tynifier_29b2f957426dbe1bd5e547cfbea5e3b4_1696829338.css.deflate
- (new file) wp-content/tinyfier-cache/tynifier_4ba2e1435e2973ac8f09c4514d72e4ea_1696829338.css
- (new file) wp-content/assets.php
- ...
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for tinyfier-wp
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲45 | 13.21 ▼1.35 | 5.41 ▲3.30 | 36.69 ▼6.22 |
Dashboard /wp-admin | 2,210 ▲25 | 4.86 ▼0.06 | 97.40 ▼5.73 | 39.56 ▼0.33 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.04 | 38.61 ▼3.05 | 35.88 ▲1.74 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 18.51 ▼4.74 | 626.02 ▼42.32 | 55.68 ▲1.38 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.24 ▼0.04 | 92.56 ▼13.12 | 39.96 ▼15.48 |
Tinyfier /wp-admin/options-general.php?page=tinyfier | 833 | 2.05 | 23.47 | 26.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/tinyfier-wp/Tinyfier/tinyfier.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_feed() in wp-content/plugins/tinyfier-wp/TinyfierWP.php:23
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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 your attention:
- Requires at least: Version format is invalid
tinyfier-wp/plugin.php 85% from 13 tests
The entry point to "tinyfier-wp" version 0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("tinyfier-wp.php" instead of "plugin.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
It is important to fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/tinyfier-wp/Tinyfier/Image/tools/gifsicle/gifsicle.exe
- ☣ wp-content/plugins/tinyfier-wp/Tinyfier/Image/tools/jpegtran/jpegtran.exe
- ☣ wp-content/plugins/tinyfier-wp/Tinyfier/Image/tools/optipng/optipng.exe
- ☣ wp-content/plugins/tinyfier-wp/Tinyfier/Image/tools/pngout/pngout.exe
- ☣ wp-content/plugins/tinyfier-wp/Tinyfier/Image/tools/pngquant/pngquant.exe
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 1,481 | 1,388 | 7,275 |
Markdown | 1 | 7 | 0 | 18 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 155)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 54.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 352.00 |
Average method complexity | 5.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 155.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 5 | 16.13% |
▷ Concrete classes | 26 | 83.87% |
▷ Final classes | 0 | 0.00% |
Methods | 344 | |
▷ Static methods | 38 | 11.05% |
▷ Public methods | 134 | 38.95% |
▷ Protected methods | 154 | 44.77% |
▷ Private methods | 56 | 16.28% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 115 | |
▷ Global constants | 98 | 85.22% |
▷ Class constants | 17 | 14.78% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected