84% catag

Code Review | autometa's CATAG

WordPress plugin autometa's CATAG scored84%from 54 tests.

About plugin

  • Plugin page: catag
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-4.9.2
  • WordPress version: 6.3.1
  • First release: May 14, 2016
  • Latest release: Jan 18, 2018
  • Number of updates: 39
  • Update frequency: every 16.0 days
  • Top authors: JorgeAmVF (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /972 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.37ms] Passed 4 tests

A check of server-side resources used by autometa's CATAG
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.29 ▲0.74
Dashboard /wp-admin3.31 ▲0.0047.28 ▼6.29
Posts /wp-admin/edit.php3.36 ▲0.0052.99 ▼2.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.61 ▼3.73
Media Library /wp-admin/upload.php3.23 ▲0.0035.90 ▼0.62

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for autometa's CATAG
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.141.52 ▼0.2242.65 ▲3.64
Dashboard /wp-admin2,198 ▲245.63 ▲0.1189.79 ▼11.8639.76 ▼13.69
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0438.80 ▼5.0635.11 ▼2.67
Add New Post /wp-admin/post-new.php1,526 ▼023.31 ▲0.18686.01 ▲5.5854.43 ▼5.05
Media Library /wp-admin/upload.php1,400 ▼04.32 ▲0.09111.49 ▼3.9247.89 ▲2.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/catag/catag.php:34

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: cloud, automation, taxonomy, shortcode, metadata...

catag/catag.php 92% from 13 tests

This is the main PHP file of "autometa's CATAG" version 2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 151 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected28 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172428

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin