83% tp-philosophy-tools

Code Review | TP Philosophy Tools

WordPress plugin TP Philosophy Tools scored 83% from 54 tests.

About plugin

  • Plugin page: tp-philosophy-tools
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.0
  • WordPress version: 6.3.1
  • First release: Mar 8, 2017
  • Latest release: Aug 16, 2022
  • Number of updates: 27
  • Update frequency: every 73.3 days
  • Top authors: themepalace (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,513 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.20MB] [CPU: ▼3.05ms] Passed 4 tests

Server-side resources used by TP Philosophy Tools
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2138.53 ▼0.80
Dashboard /wp-admin3.50 ▲0.2049.55 ▲5.95
Posts /wp-admin/edit.php3.61 ▲0.2648.23 ▲6.25
Add New Post /wp-admin/post-new.php6.10 ▲0.2187.10 ▼23.58
Media Library /wp-admin/upload.php3.42 ▲0.1938.47 ▲6.23
Add New /wp-admin/post-new.php?post_type=tp-philosophy-teams3.5751.35
Team Category /wp-admin/edit-tags.php?taxonomy=tp-philosophy-teams-category&post_type=tp-philosophy-teams3.4135.14
All Teams /wp-admin/edit.php?post_type=tp-philosophy-teams3.4638.08
All Testimonials /wp-admin/edit.php?post_type=tp-philosophy-testi3.4633.27
Add New /wp-admin/post-new.php?post_type=tp-philosophy-testi3.5650.31

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for TP Philosophy Tools
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲13113.15 ▼1.171.70 ▼0.2339.95 ▼7.66
Dashboard /wp-admin2,266 ▲804.81 ▼0.11111.64 ▲7.5038.72 ▼0.25
Posts /wp-admin/edit.php2,149 ▲602.06 ▲0.0640.16 ▲0.4036.84 ▲1.13
Add New Post /wp-admin/post-new.php1,571 ▲2923.26 ▲5.02675.13 ▲74.5850.61 ▼2.81
Media Library /wp-admin/upload.php1,451 ▲634.16 ▼0.0494.22 ▼3.9044.08 ▼0.23
Add New /wp-admin/post-new.php?post_type=tp-philosophy-teams2,9458.02199.4187.01
Team Category /wp-admin/edit-tags.php?taxonomy=tp-philosophy-teams-category&post_type=tp-philosophy-teams1,3192.1425.9927.43
All Teams /wp-admin/edit.php?post_type=tp-philosophy-teams1,1721.9431.1330.55
All Testimonials /wp-admin/edit.php?post_type=tp-philosophy-testi1,1641.9430.6829.61
Add New /wp-admin/post-new.php?post_type=tp-philosophy-testi2,7427.85171.6763.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tp-philosophy-tools/template-parts/tp-content-team-single.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tp-philosophy-tools/template-parts/tp-content-team.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tp-philosophy-tools/templates/tp-single-testimonial.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tp-philosophy-tools/template-parts/tp-content-testimonial.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tp-philosophy-tools/include/tp-philosophy-tools-functions.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tp-philosophy-tools/templates/tp-archive-team.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tp-philosophy-tools/templates/tp-single-team.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tp-philosophy-tools/templates/tp-archive-testimonial.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tp-philosophy-tools/template-parts/tp-content-testimonial-single.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: The official readme.txt might help

tp-philosophy-tools/tp-philosophy-tools.php 85% from 13 tests

The main file in "TP Philosophy Tools" v. 1.1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 144 characters long)
  • Domain Path: The domain path folder was not found ("/languages/")

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
There were no executable files found in this plugin1,121 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP14165226768
CSS21522352
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity13.40
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity4.44
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 were not PNG files found in your plugin