10% wp-custom-taxonomy-meta

Code Review | Category and Taxonomy Meta Fields

WordPress plugin Category and Taxonomy Meta Fields scored10%from 54 tests.

About plugin

  • Plugin page: wp-custom-taxonom...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Jul 11, 2015
  • Latest release: Jul 25, 2022
  • Number of updates: 47
  • Update frequency: every 54.7 days
  • Top authors: amu02aftab (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

2,000+ active /15,836 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/wp-custom-taxonomy-meta/includes/options.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; wpaft_admin has a deprecated constructor

Server metrics [RAM: ▼1.76MB] [CPU: ▼52.66ms] Passed 4 tests

An overview of server-side resources used by Category and Taxonomy Meta Fields
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.81 ▼5.71
Dashboard /wp-admin2.19 ▼1.157.65 ▼51.23
Posts /wp-admin/edit.php2.20 ▼1.166.84 ▼36.14
Add New Post /wp-admin/post-new.php2.19 ▼3.7010.41 ▼95.78
Media Library /wp-admin/upload.php2.19 ▼1.047.72 ▼27.48
Taxonomy Meta /wp-admin/options-general.php?page=texonomy_meta2.208.81

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: 1 new table, 8 new options
New tables
wp_termsmeta
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
wpaft_db_version
widget_recent-posts
wpaft_configuration
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Category and Taxonomy Meta Fields
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.18 ▼1.201.66 ▼0.2236.24 ▼7.57
Dashboard /wp-admin2,213 ▲285.86 ▲0.0097.90 ▼20.6638.04 ▼9.64
Posts /wp-admin/edit.php2,102 ▲102.05 ▲0.0038.45 ▲0.1530.98 ▼4.22
Add New Post /wp-admin/post-new.php1,542 ▲923.08 ▲4.86664.54 ▲48.8756.36 ▲2.15
Media Library /wp-admin/upload.php1,401 ▲134.24 ▲0.04108.33 ▲6.4044.57 ▲1.88
Taxonomy Meta /wp-admin/options-general.php?page=texonomy_meta9541.7324.4942.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-custom-taxonomy-meta/includes/options.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; wpaft_admin has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=texonomy_meta
    • > Deprecated in wp-content/plugins/wp-custom-taxonomy-meta/includes/options.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; wpaft_admin has a deprecated constructor

SRP 50% 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
Almost there! Just fix the following items
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant PLUGINDIR - assumed 'PLUGINDIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-custom-taxonomy-meta/wp-texonomy-meta.php on line 32
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-custom-taxonomy-meta/wp-texonomy-meta.php on line 32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-custom-taxonomy-meta/wp-texonomy-meta.php:50
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-custom-taxonomy-meta/wp-texonomy-meta.php on line 15
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/wp-custom-taxonomy-meta/wp-texonomy-meta.php on line 48

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: category short description, category image, category meta, taxonomy description, taxonomy short description...

wp-custom-taxonomy-meta/wp-texonomy-meta.php 92% from 13 tests

The primary PHP file in "Category and Taxonomy Meta Fields" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-custom-taxonomy-meta.php" instead of "wp-texonomy-meta.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin604 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2259121565
JavaScript114139

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.45MB with 0.27MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png19.94KB11.97KB▼ 39.97%
screenshot-2.png444.97KB103.34KB▼ 76.78%