Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼14.05ms] Passed 4 tests
This is a short check of server-side resources used by Webdev AutoTag
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.20 ▲0.37 |
Dashboard /wp-admin | 3.51 ▲0.21 | 32.31 ▼18.43 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 33.78 ▼11.31 |
Add New Post /wp-admin/post-new.php | 5.82 ▼0.06 | 68.58 ▼23.18 |
Media Library /wp-admin/upload.php | 3.53 ▲0.31 | 30.69 ▼3.29 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Webdev AutoTag
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 13.25 ▼1.05 | 1.69 ▼0.07 | 46.88 ▲0.96 |
Dashboard /wp-admin | 2,227 ▲42 | 6.02 ▲0.16 | 102.19 ▼18.55 | 37.56 ▼8.44 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.04 ▲0.06 | 38.79 ▲2.57 | 37.84 ▲3.55 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.13 ▼0.04 | 679.62 ▲3.87 | 60.40 ▲12.98 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.27 ▼0.05 | 108.38 ▲13.54 | 45.60 ▲3.28 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'PYWEBDEV_AUTOTAG_DIR/includes/support.php' (include_path='.:/usr/share/php') in wp-content/plugins/pywebdev-autotag/admin.php on line 2
- > PHP Warning
Use of undefined constant PYWEBDEV_AUTOTAG_DIR - assumed 'PYWEBDEV_AUTOTAG_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/pywebdev-autotag/admin.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/pywebdev-autotag/views/setting-page2.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pywebdev-autotag/views/suggestion.php:2
- > PHP Fatal error
require_once(): Failed opening required 'PYWEBDEV_AUTOTAG_DIR/includes/support.php' (include_path='.:/usr/share/php') in wp-content/plugins/pywebdev-autotag/public.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/pywebdev-autotag/tmp/005-setting-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/pywebdev-autotag/views/setting-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/pywebdev-autotag/pywebdev-autotag.php:11
- > PHP Warning
require_once(PYWEBDEV_AUTOTAG_DIR/includes/support.php): failed to open stream: No such file or directory in wp-content/plugins/pywebdev-autotag/public.php on line 2
- > PHP Warning
require_once(PYWEBDEV_AUTOTAG_DIR/includes/support.php): failed to open stream: No such file or directory in wp-content/plugins/pywebdev-autotag/admin.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: auto tags, autotag, get tag from search engine, text proccesing
pywebdev-autotag/pywebdev-autotag.php Passed 13 tests
Analyzing the main PHP file in "Webdev AutoTag" version 1.0
84 characters long description:
Autotag suggest tag on edit post from search engine like Google, Bing, Stackoverflow
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
Success! There were no dangerous files found in this plugin2,938 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 499 | 668 | 2,708 |
JavaScript | 2 | 26 | 16 | 230 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 27.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 173 | |
▷ Static methods | 13 | 7.51% |
▷ Public methods | 137 | 79.19% |
▷ Protected methods | 16 | 9.25% |
▷ Private methods | 20 | 11.56% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 29 | |
▷ Global constants | 29 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-setting48x48.png | 3.03KB | 1.75KB | ▼ 42.29% |
images/icon-setting16x16.png | 1.61KB | 0.90KB | ▼ 44.27% |
images/icon-setting24x24.png | 1.99KB | 1.26KB | ▼ 36.57% |