78% foxdell-folio-taxonomy-toolkit

Code Review | Foxdell Folio Taxonomy Toolkit

WordPress plugin Foxdell Folio Taxonomy Toolkit scored78%from 54 tests.

About plugin

  • Plugin page: foxdell-folio-tax...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Jul 4, 2016
  • Latest release: Jul 7, 2016
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: chris.odell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /841 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.50MB] [CPU: ▼2.70ms] Passed 4 tests

Server-side resources used by Foxdell Folio Taxonomy Toolkit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.00 ▲0.5338.19 ▼4.81
Dashboard /wp-admin3.84 ▲0.5451.94 ▲3.22
Posts /wp-admin/edit.php3.89 ▲0.5451.44 ▼2.19
Add New Post /wp-admin/post-new.php6.36 ▲0.4794.98 ▼7.00
Media Library /wp-admin/upload.php3.70 ▲0.4744.74 ▲11.29
FoFo Taxonomy Toolkit /wp-admin/plugins.php?page=fofo-taxo-toolkit3.8642.47

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 51 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
FoFo_Taxonomy_Toolkit_models
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Foxdell Folio Taxonomy Toolkit
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲1314.35 ▼0.241.74 ▼0.2041.94 ▲1.36
Dashboard /wp-admin2,201 ▲215.58 ▼0.0985.53 ▼7.8240.86 ▼5.18
Posts /wp-admin/edit.php2,106 ▲32.06 ▲0.0240.32 ▼0.5037.94 ▲3.52
Add New Post /wp-admin/post-new.php1,553 ▲2418.65 ▲0.99660.56 ▼18.7256.18 ▼0.17
Media Library /wp-admin/upload.php1,403 ▲64.23 ▲0.04100.94 ▼1.9246.65 ▲4.70
FoFo Taxonomy Toolkit /wp-admin/plugins.php?page=fofo-taxo-toolkit1,8222.0523.8233.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • FoFo_Taxonomy_Toolkit_models
    • widget_recent-comments

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/foxdell-folio-taxonomy-toolkit/views/taxo_block.php
  • 38× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: display_state in wp-content/plugins/foxdell-folio-taxonomy-toolkit/views/post_list.php on line 10
    • > PHP Notice
      Undefined variable: display_state in wp-content/plugins/foxdell-folio-taxonomy-toolkit/views/taxo_list.php on line 10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/foxdell-folio-taxonomy-toolkit/views/main.php:15
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/foxdell-folio-taxonomy-toolkit/views/taxo_edit.php:29
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/foxdell-folio-taxonomy-toolkit/views/taxo_edit.php on line 27
    • > PHP Notice
      Undefined variable: taxo_item in wp-content/plugins/foxdell-folio-taxonomy-toolkit/views/taxo_new_terms.php on line 13
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/foxdell-folio-taxonomy-toolkit/views/taxo_new_terms.php on line 13
    • > PHP Notice
      Trying to get property 'classes' of non-object in wp-content/plugins/foxdell-folio-taxonomy-toolkit/views/taxo_new_terms.php on line 22
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/foxdell-folio-taxonomy-toolkit/views/post_search.php:11
    • > PHP Notice
      Undefined variable: taxo_item in wp-content/plugins/foxdell-folio-taxonomy-toolkit/views/taxo_edit.php on line 27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were 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: tools, admin, toolkit, taxonomy, terms...

foxdell-folio-taxonomy-toolkit/fofo-taxo-toolkit.php 92% from 13 tests

The main PHP script in "Foxdell Folio Taxonomy Toolkit" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("foxdell-folio-taxonomy-toolkit.php" instead of "fofo-taxo-toolkit.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected3,291 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP161,0584,0502,733
JavaScript2197102390
CSS23319168

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity37.33
▷ Minimum class complexity3.00
▷ Maximum class complexity123.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods143
▷ Static methods42.80%
▷ Public methods6948.25%
▷ Protected methods00.00%
▷ Private methods7451.75%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants1191.67%
▷ Class constants18.33%
▷ Public constants1100.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
18 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_glass_40_ffc73d_1x400.png0.13KB0.16KB0.00%
css/images/ui-bg_flat_50_5c5c5c_40x100.png0.21KB0.08KB▼ 58.77%
css/images/ui-icons_4b8e0b_256x240.png4.27KB4.11KB▼ 3.78%
css/images/ui-bg_highlight-soft_80_eeeeee_1x100.png0.09KB0.13KB0.00%
css/images/ui-bg_glass_20_555555_1x400.png0.11KB0.15KB0.00%