94% autometa

Code Review | autometa

WordPress plugin autometa scored 94% from 53 tests.

About plugin

  • Plugin page: autometa
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-4.9.2
  • WordPress version: 5.8.1
  • First release: Sep 25, 2016
  • Latest release: Jan 18, 2018
  • Number of updates: 13
  • Update frequency: every 37.0 days
  • Top authors: JorgeAmVF (100%)

Code review

53 tests

User reviews

1 review

Install metrics

90+ active / 1,364 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼269.45ms] Passed 4 tests

Analyzing server-side resources used by autometa
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.0736.72 ▲3.61
Dashboard /wp-admin3.13 ▲0.0748.29 ▲5.81
Posts /wp-admin/edit.php3.24 ▲0.1342.98 ▲4.76
Add New Post /wp-admin/post-new.php5.49 ▲0.0696.49 ▼1,078.50
Media Library /wp-admin/upload.php3.07 ▲0.0629.90 ▼7.67

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for autometa
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,674 ▲6815.87 ▲0.238.74 ▲0.5748.57 ▲1.16
Dashboard /wp-admin2,950 ▲975.91 ▲0.06151.88 ▲18.01103.16 ▼5.45
Posts /wp-admin/edit.php2,706 ▼02.68 ▼0.0180.40 ▲11.9990.50 ▼1.65
Add New Post /wp-admin/post-new.php1,853 ▲26519.09 ▼2.22361.18 ▲86.50108.66 ▲3.74
Media Library /wp-admin/upload.php1,775 ▲34.99 ▼0.04154.66 ▲3.92107.49 ▼7.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 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 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/autometa/autometa.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

autometa/autometa.php Passed 13 tests

The entry point to "autometa" version 2.2 is a PHP file that has certain tags in its header comment area
135 characters long description:
It reproduces metadata information and it generates taxonomy clouds and comment and search forms to publications simply via shortcodes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin404 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161217404

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity4.50
▷ Minimum method complexity2.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods562.50%
▷ Protected methods337.50%
▷ Private methods00.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin