84% pywebdev-autotag

Code Review | Webdev AutoTag

WordPress plugin Webdev AutoTag scored84%from 54 tests.

About plugin

  • Plugin page: pywebdev-autotag
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7.4
  • WordPress version: 6.3.1
  • First release: Jun 6, 2017
  • Latest release: Jun 6, 2017
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: pywebdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /890 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.20 ▲0.37
Dashboard /wp-admin3.51 ▲0.2132.31 ▼18.43
Posts /wp-admin/edit.php3.58 ▲0.2333.78 ▼11.31
Add New Post /wp-admin/post-new.php5.82 ▼0.0668.58 ▼23.18
Media Library /wp-admin/upload.php3.53 ▲0.3130.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7513.25 ▼1.051.69 ▼0.0746.88 ▲0.96
Dashboard /wp-admin2,227 ▲426.02 ▲0.16102.19 ▼18.5537.56 ▼8.44
Posts /wp-admin/edit.php2,110 ▲212.04 ▲0.0638.79 ▲2.5737.84 ▲3.55
Add New Post /wp-admin/post-new.php1,546 ▲1323.13 ▼0.04679.62 ▲3.8760.40 ▲12.98
Media Library /wp-admin/upload.php1,412 ▲274.27 ▼0.05108.38 ▲13.5445.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP244996682,708
JavaScript22616230

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 code0.41
Average class complexity27.30
▷ Minimum class complexity1.00
▷ Maximum class complexity197.00
Average method complexity4.04
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods173
▷ Static methods137.51%
▷ Public methods13779.19%
▷ Protected methods169.25%
▷ Private methods2011.56%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants29
▷ Global constants29100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/icon-setting48x48.png3.03KB1.75KB▼ 42.29%
images/icon-setting16x16.png1.61KB0.90KB▼ 44.27%
images/icon-setting24x24.png1.99KB1.26KB▼ 36.57%